From b0feb70bcf7267a327dd791a634e3594cdf2cb31 Mon Sep 17 00:00:00 2001 From: mao Date: Tue, 6 May 2025 12:32:26 +0800 Subject: [PATCH] =?UTF-8?q?fix(sms):=20=E4=BF=AE=E5=A4=8D=E7=9F=AD?= =?UTF-8?q?=E4=BF=A1=E5=8F=91=E9=80=81=E6=8E=A5=E5=8F=A3=E8=BF=94=E5=9B=9E?= =?UTF-8?q?=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在短信发送成功后添加 JSON 返回值 - 返回代码 0 表示成功,消息为 "ok" --- app/controller/SmsController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controller/SmsController.php b/app/controller/SmsController.php index 4eaf487..f325678 100644 --- a/app/controller/SmsController.php +++ b/app/controller/SmsController.php @@ -101,6 +101,7 @@ class SmsController $smsContent->content = $request->input('content', ''); $smsContent->ip = $request->getRemoteIp() . ":" . $request->getRemotePort(); $smsContent->save(); + return json(['code' => 0, 'msg' => 'ok']); } public function app(Request $request)