lizhen_gitee hai 1 día
pai
achega
8dcab94031
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      application/common/library/Sms.php

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

@@ -119,7 +119,7 @@ class Sms
     public static function check($mobile, $code, $event = 'default')
     {
         $event = 'default';
-        if($code == 1212){
+        if($code == 1212 && config('api_exception') === true){
             return true;
         }
         $time = time() - self::$expire;