Commit b5f6b4a6 by 赵增煜

增加短信返回打印

parent e6b2916b
......@@ -8,6 +8,7 @@
use App\Models\User;
use App\Services\SmsService;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Log;
class UserController extends BaseApiController
{
......@@ -112,8 +113,7 @@ public function smsCode(Request $request)
$templateData = ['code' => $verificationCode];
$smsService = new SmsService();
$response = $smsService->sendSms($mobile, $templateName, $templateData);
dd($response);
Log::info(json_encode($response));
return $this->success('验证码已发送');
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment