From 73a8e1711d9395944d7d02caade2d2239ce8c0ab Mon Sep 17 00:00:00 2001 From: lq Date: Thu, 12 Dec 2024 14:34:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E5=8C=BB=E7=94=9F=E6=B3=A8?= =?UTF-8?q?=E5=86=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- service/models/forms/DoctorCompleteOne.php | 23 +++++++++++----------- 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/service/models/forms/DoctorCompleteOne.php b/service/models/forms/DoctorCompleteOne.php index 43022b6..aad1ce9 100644 --- a/service/models/forms/DoctorCompleteOne.php +++ b/service/models/forms/DoctorCompleteOne.php @@ -40,18 +40,17 @@ class DoctorCompleteOne extends BaseModel public function checkCard($attribute, $params) { - $response = (new Client(['http_errors' => false]))->post("https://eid.shumaidata.com/eid/check", [ - 'headers' => ['Authorization' =>"APPCODE f98bba3251714c759f5bd29d00e1c46e"], - 'query' => [ - 'idcard' => $this->idcard, - 'name' => $this->name - ], - ]); - var_dump($response);die; - $result = json_decode($response->getBody(),true); - if(!($result['code']==0 && $result['result']['res']==1)){ - $this->addError($attribute, '身份证名字不匹配'); - } +// $response = (new Client(['http_errors' => false]))->post("https://eid.shumaidata.com/eid/check", [ +// 'headers' => ['Authorization' =>"APPCODE f98bba3251714c759f5bd29d00e1c46e"], +// 'query' => [ +// 'idcard' => $this->idcard, +// 'name' => $this->name +// ], +// ]); +// $result = json_decode($response->getBody(),true); +// if(!($result['code']==0 && $result['result']['res']==1)){ +// $this->addError($attribute, '身份证名字不匹配'); +// } } public function attributeLabels()