|
@@ -283,13 +283,13 @@ class User Extends Model
|
|
|
}
|
|
|
//获取最后的验证码
|
|
|
$time = time()-90;
|
|
|
- $sms = Sms::where(['mobile' => $phone, 'event' => 'forgetpwd'])
|
|
|
- ->where('createtime','>',$time)
|
|
|
- ->order('id', 'DESC')
|
|
|
- ->find();
|
|
|
- if (!$sms || $sms->code != $ver_code){
|
|
|
- return Common::return_error('短信验证码不正确!');
|
|
|
- }
|
|
|
+// $sms = Sms::where(['mobile' => $phone, 'event' => 'forgetpwd'])
|
|
|
+// ->where('createtime','>',$time)
|
|
|
+// ->order('id', 'DESC')
|
|
|
+// ->find();
|
|
|
+// if (!$sms || $sms->code != $ver_code){
|
|
|
+// return Common::return_error('短信验证码不正确!');
|
|
|
+// }
|
|
|
$phone_use->password = md5($password);
|
|
|
Db::startTrans();
|
|
|
try {
|