puzhibing
2024-01-12 aec323b302fdc60429ecf8944e40ebae1a85a7fa
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);