|
|
@@ -813,7 +813,7 @@ class LoginForm extends ApiModel
|
|
|
public function sendCode($key)
|
|
|
{
|
|
|
$is_debug=Option::get('is_debug', 0, 'saas', 0)['value'];
|
|
|
- if(preg_match("/^111\d{8}$/", $this->phone) && $is_debug == 1){
|
|
|
+ if($is_debug == 1){
|
|
|
$sms_code = 999999;
|
|
|
// 验证码有效期5分钟
|
|
|
cache()->set($this->phone . $key . $this->store_id, $sms_code, 600);
|