bioInfo = $bioInfo; $this->apiParas["bio_info"] = $bioInfo; } public function getBioInfo() { return $this->bioInfo; } public function setCertName($certName) { $this->certName = $certName; $this->apiParas["cert_name"] = $certName; } public function getCertName() { return $this->certName; } public function setIdCardNo($idCardNo) { $this->idCardNo = $idCardNo; $this->apiParas["id_card_no"] = $idCardNo; } public function getIdCardNo() { return $this->idCardNo; } public function setScene($scene) { $this->scene = $scene; $this->apiParas["scene"] = $scene; } public function getScene() { return $this->scene; } public function setUserMobile($userMobile) { $this->userMobile = $userMobile; $this->apiParas["user_mobile"] = $userMobile; } public function getUserMobile() { return $this->userMobile; } public function getApiMethodName() { return "dingtalk.oapi.finance.faceVerification.init"; } public function getApiParas() { return $this->apiParas; } public function check() { RequestCheckUtil::checkNotNull($this->bioInfo,"bioInfo"); RequestCheckUtil::checkNotNull($this->certName,"certName"); RequestCheckUtil::checkNotNull($this->idCardNo,"idCardNo"); RequestCheckUtil::checkNotNull($this->scene,"scene"); RequestCheckUtil::checkNotNull($this->userMobile,"userMobile"); } public function putOtherTextParam($key, $value) { $this->apiParas[$key] = $value; $this->$key = $value; } }