mitao
2025-01-17 afa0dbb4f54e7244835dd67ec33c3e545f122f71
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/order/util/MsgUtils.java
@@ -23,7 +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")
@@ -42,7 +42,8 @@
        SendSmsRequest sendSmsRequest = SendSmsRequest.builder()
                .phoneNumbers(phoneNumber)
                .signName("鸿瑞堂")
                .templateCode("SMS_234035865")
                .templateCode(templateCode)
                .templateParam(sendContent)
                .build();
        CompletableFuture<SendSmsResponse> response = client.sendSms(sendSmsRequest);