소스 검색

短信1212

lizhen_gitee 5 달 전
부모
커밋
8dcab94031
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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;