gq 7 lat temu
rodzic
commit
b6fcd3042d

+ 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]);