From 0f2843a5f33c3319f5d95ca76c458da53728431e Mon Sep 17 00:00:00 2001 From: mitao <2763622819@qq.com> Date: 星期三, 06 三月 2024 16:28:42 +0800 Subject: [PATCH] 新增t_member_coupon表分表配置 --- ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/order/util/MsgUtils.java | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/order/util/MsgUtils.java b/ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/order/util/MsgUtils.java index ad0d481..a690d70 100644 --- a/ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/order/util/MsgUtils.java +++ b/ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/order/util/MsgUtils.java @@ -23,8 +23,7 @@ public class MsgUtils { - - public static void sendMsg(String phoneNumber,Integer sendType,String sendContent) throws Exception { + public static void sendMsg(String phoneNumber,String templateCode,String sendContent) throws Exception { StaticCredentialProvider provider = StaticCredentialProvider.create(Credential.builder() .accessKeyId("LTAI5tAfKFuhyKFH12CTkXFj") @@ -43,7 +42,8 @@ SendSmsRequest sendSmsRequest = SendSmsRequest.builder() .phoneNumbers(phoneNumber) .signName("鸿瑞堂") - .templateCode("SMS_234035865") + .templateCode(templateCode) + .templateParam(sendContent) .build(); CompletableFuture<SendSmsResponse> response = client.sendSms(sendSmsRequest); -- Gitblit v1.7.1