From 4eebd0c27802b20129128a431e85bc4ed2abb806 Mon Sep 17 00:00:00 2001 From: lq Date: Fri, 13 Dec 2024 12:49:47 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=B3=E9=97=AD=E8=BA=AB=E4=BB=BD=E8=AF=81?= =?UTF-8?q?=E9=AA=8C=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- member/models/forms/PatientForm.php | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/member/models/forms/PatientForm.php b/member/models/forms/PatientForm.php index 1606d23..890789d 100644 --- a/member/models/forms/PatientForm.php +++ b/member/models/forms/PatientForm.php @@ -99,17 +99,17 @@ class PatientForm 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->id_card, - 'name' => $this->name - ], - ]); - $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->id_card, +// 'name' => $this->name +// ], +// ]); +// $result = json_decode($response->getBody(), true); +// if (!($result['code'] == 0 && $result['result']['res'] == 1)) { +// $this->addError($attribute, '身份证名字不匹配'); +// } } public function attributeLabels()