gq 7 vuotta sitten
vanhempi
commit
b6fcd3042d
1 muutettua tiedostoa jossa 5 lisäystä ja 2 poistoa
  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]);