From 4db772e33b6bd6a260e32dfe265596fd425a0e38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cwanyongkang=E2=80=9D?= <“937888580@qq.com”> Date: Mon, 5 Aug 2024 17:10:35 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A4=E8=AF=81=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/controller/Verify.php | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/app/api/controller/Verify.php b/app/api/controller/Verify.php index 823b23a..9df82c3 100644 --- a/app/api/controller/Verify.php +++ b/app/api/controller/Verify.php @@ -32,9 +32,8 @@ class Verify } $username = $post['phone']; - $id_code = $post['id']; - if (empty($username) || empty($id_code)) { + if (empty($username)) { $return_data = [ 'code' => -1, 'msg' => '身份证号或手机号不能为空', @@ -45,7 +44,7 @@ class Verify $user_model = new User; - $userinfo = $user_model->getOne(['id_code'=>$id_code], 'is_verify'); + $userinfo = $user_model->getOne(['LoginCode'=>$username], 'is_verify'); if ($userinfo['is_verify']) { $return_data = [ @@ -64,4 +63,15 @@ class Verify } } + + public function openlimit() { + + $data = $_POST; + if (empty($data)) { + $data = json_decode(file_get_contents("php://input"), true); + } + $url = "http://124.236.113.166:18702/api/agent/openIM/apikey/80cf4f64e990b78a9fc5eb/account/".$data['account']; + linkcurl($url,'GET',[],[],0); + echo json_encode(['code'=>1,]); + } }