diff --git a/Application/Home/Controller/SafeController.class.php b/Application/Home/Controller/SafeController.class.php index ee3de791f..4320a5ec9 100644 --- a/Application/Home/Controller/SafeController.class.php +++ b/Application/Home/Controller/SafeController.class.php @@ -430,16 +430,16 @@ class SafeController extends BaseController{ } // 判断是否验证过手机号 // 获取最后一次验证的手机 - $lastVerified = M('sms_logs', 'tab_')->where(['mobile'=>$tel])->order('id desc')->find(); + // $lastVerified = M('sms_logs', 'tab_')->where(['mobile'=>$tel])->order('id desc')->find(); - if ($lastVerified['is_checked'] != 1) // 判断是否失效, 有效时间2分钟 - { - $this->error("尚未验证过短信或者短信验证已失效,请重新验证"); - return false; - } else if (time()-strtotime($lastVerified['created_at']) > 120) { - $this->error("短信验证已失效,请重新验证"); - return false; - } + // if ($lastVerified['is_checked'] != 1) // 判断是否失效, 有效时间2分钟 + // { + // $this->error("尚未验证过短信或者短信验证已失效,请重新验证"); + // return false; + // } else if (time()-strtotime($lastVerified['created_at']) > 120) { + // $this->error("短信验证已失效,请重新验证"); + // return false; + // } $pattern = "/^1[3|5|7|8]\\d{9}$/i"; if(!preg_match($pattern, $tel)) {