gq 7 년 전
부모
커밋
b6fcd3042d
1개의 변경된 파일5개의 추가작업 그리고 2개의 파일을 삭제
  1. 5 2
      server/app/Http/Controllers/Api/V1/AuthController.php

+ 5 - 2
server/app/Http/Controllers/Api/V1/AuthController.php

xqd
@@ -301,8 +301,11 @@ class AuthController extends Controller
         $msg = '【喵喵】您的验证码是:(' . $verify_code.')。一分钟内有效请及时验证';
 
          $result = $this->sendSms($msg, $phone);
-        if (!$result)
-             $this->logger->Error("Send sms failed.");
+        /*if (!$result)
+             $this->logger->Error("Send sms failed.");*/
+        if ($result!='success') {
+            \Log::error("Send sms failed.");
+        }
 
 
 //        return $this->api(['verify_code' => $verify_code]);