edit-api-licheb-sms_ck
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user