Parcourir la source

完善短信验证

15954078560 il y a 3 ans
Parent
commit
559cbd329f
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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')