From ca1b3a18d138acf7f8f79f245fccebb765e3d461 Mon Sep 17 00:00:00 2001 From: 21819 Date: Tue, 5 Mar 2024 16:00:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=96=E7=BD=91=E9=AA=8C=E8=AF=81=E7=A0=81ap?= =?UTF-8?q?i=E6=9B=BF=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/biutag/outer/controller/SmsController.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mailbox-outer/src/main/java/com/biutag/outer/controller/SmsController.java b/mailbox-outer/src/main/java/com/biutag/outer/controller/SmsController.java index 09f9216..3ec8b8f 100644 --- a/mailbox-outer/src/main/java/com/biutag/outer/controller/SmsController.java +++ b/mailbox-outer/src/main/java/com/biutag/outer/controller/SmsController.java @@ -4,6 +4,7 @@ import com.alibaba.fastjson2.JSONObject; import com.biutag.core.AjaxResult; import com.biutag.outer.util.CodeUtil; import com.biutag.outer.util.Sms; +import com.biutag.outer.util.SmsSend; import lombok.RequiredArgsConstructor; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestMapping; @@ -22,7 +23,8 @@ public class SmsController { public AjaxResult sendCode(@RequestParam String phone) { String code = String.valueOf(1000 + random.nextInt(9000)); // 发送短信 - Sms.send(phone, code); +// Sms.send(phone, code); + SmsSend.sendSms(phone,code); // 设置缓存 return AjaxResult.success(JSONObject.of("requestId", CodeUtil.set(code))); }