15954078560 3 лет назад
Родитель
Сommit
559cbd329f
1 измененных файлов с 1 добавлено и 1 удалено
  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')