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