From fcb71e443b478ca2b2a7a35ddd5c6dd8b447775c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cwanyongkang=E2=80=9D?= <“937888580@qq.com”> Date: Sat, 16 Jan 2021 18:11:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E5=90=8D=E8=AE=A4=E8=AF=81=20?= =?UTF-8?q?=E5=B7=B2=E7=BB=8F=E8=AE=A4=E8=AF=81=E7=9A=84=E8=BA=AB=E4=BB=BD?= =?UTF-8?q?=E8=AF=81=E5=8F=B7=E7=A0=81=E4=B8=8D=E8=83=BD=E5=86=8D=E6=AC=A1?= =?UTF-8?q?=E8=AE=A4=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/controller/Test.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/api/controller/Test.php b/app/api/controller/Test.php index 8ae8410..d97f8f4 100644 --- a/app/api/controller/Test.php +++ b/app/api/controller/Test.php @@ -23,6 +23,15 @@ class Test extends Controller echo json_encode($data); die; } + $flag = $user->getOne(['certify_id'=>$info['certifyId'],'is_verify'=>1]); + if($flag) { + $data = [ + 'Code'=>30000 + ]; + echo json_encode($data); + die; + } + if($info){ $update_one['certify_id'] = $info['certifyId']; $update_one['Name'] = $temp['name'];