From eb19adc7a46d6c77c8fb7f6d253ad491058e5fee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cwanyongkang=E2=80=9D?= <“937888580@qq.com”> Date: Mon, 6 Jun 2022 15:36:28 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8E=B7=E5=8F=96=E6=89=AB=E8=84=B8=E7=8A=B6?= =?UTF-8?q?=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/agent/controller/Index.php | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/app/agent/controller/Index.php b/app/agent/controller/Index.php index e4e5583..bb2ad22 100644 --- a/app/agent/controller/Index.php +++ b/app/agent/controller/Index.php @@ -234,6 +234,37 @@ class Index } echo json_encode($data); } + + + public function aliGetResult2() + { + $user_phone = $_GET['user']; + $user = new UserModel; + $user_one_info = $user->getOne(['LoginCode'=>$user_phone]); + $info = Aliverify::getResult($user_one_info['certify_id']); + $data = []; + if($info){ + $user_data['is_verify'] = 1; + if ($user_one_info['is_verify'] == 1) { + $data = [ + 'Code'=>10000 + ]; + echo json_encode($data); + die; + } + if($user->updateOne(['Id'=>$user_one_info['Id']],$user_data)){ + $data = [ + 'Code'=>10000 + ]; + } + } else { + $data = [ + 'Code'=>-10000 + ]; + } + echo json_encode($data); + } + public function isverify() {