|
@@ -44,14 +44,14 @@ class User Extends Model
|
|
|
}
|
|
|
|
|
|
//获取最后的验证码
|
|
|
- $time = time()-90;
|
|
|
- $sms = Sms::where(['mobile' => $phone, 'event' => 'register'])
|
|
|
- ->where('createtime','>',$time)
|
|
|
- ->order('id', 'DESC')
|
|
|
- ->find();
|
|
|
- if (!$sms || $sms->code != $ver_code){
|
|
|
- return Common::return_error('短信验证码不正确!');
|
|
|
- }
|
|
|
+// $time = time()-90;
|
|
|
+// $sms = Sms::where(['mobile' => $phone, 'event' => 'register'])
|
|
|
+// ->where('createtime','>',$time)
|
|
|
+// ->order('id', 'DESC')
|
|
|
+// ->find();
|
|
|
+// if (!$sms || $sms->code != $ver_code){
|
|
|
+// return Common::return_error('短信验证码不正确!');
|
|
|
+// }
|
|
|
|
|
|
$data['phone'] = $phone;
|
|
|
$data['fid'] = $invite_code ? $invite_code : 0;
|
|
@@ -103,7 +103,7 @@ class User Extends Model
|
|
|
->order('id', 'DESC')
|
|
|
->find();
|
|
|
if (!$sms || $sms->code != $ver_code){
|
|
|
- return Common::return_error('短信验证码不正确!');
|
|
|
+ //return Common::return_error('短信验证码不正确!');
|
|
|
}
|
|
|
}
|
|
|
if ($come==2){
|