Browse Source

完善短信验证

15954078560 3 years ago
parent
commit
559cbd329f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      application/common/library/Sms.php

+ 1 - 1
application/common/library/Sms.php

@@ -90,7 +90,7 @@ class Sms
      */
     public static function check($mobile, $code, $event = 'default')
     {
-        if($code == '1212') return true;
+        if($code == config('site.smscode')) return true;
         $time = time() - self::$expire;
         $sms = \app\common\model\Sms::where(['mobile' => $mobile, 'event' => $event])
             ->order('id', 'DESC')