From 59874290f1aecd013b524ad898aa0ef750cb2a27 Mon Sep 17 00:00:00 2001 From: lccsw <1127794702@qq.com> Date: Tue, 26 Oct 2021 11:00:07 +0800 Subject: [PATCH] edit-api-licheb-sms_ck --- api/controllers/wxapp/licheb/User.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/controllers/wxapp/licheb/User.php b/api/controllers/wxapp/licheb/User.php index 80ab4cdb..b0a46d7b 100644 --- a/api/controllers/wxapp/licheb/User.php +++ b/api/controllers/wxapp/licheb/User.php @@ -33,6 +33,7 @@ class User extends Wxapp */ protected function get_ukey() { + $mobile_white = ['15359333655','18050017004','18350451617']; $code = $this->input_param('code'); $mobile = $this->input_param('mobile'); $sms_code = $this->input_param('sms_code'); @@ -41,7 +42,7 @@ class User extends Wxapp throw new Exception('参数错误', API_CODE_INVILD_PARAM); } //判断验证码 - if($mobile!='15359333655' && $this->env!='d'){//测试环境和测试号码 + if(!in_array($mobile,$mobile_white) && $this->env!='d'){//测试环境和测试号码 $mc = &load_cache(); $key = "licheb_login_code_" . $mobile; $cache_code = $mc->get($key);