Mike 7 năm trước cách đây
mục cha
commit
1dcd89e662

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

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