| | |
| | | |
| | | 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") |
| | |
| | | SendSmsRequest sendSmsRequest = SendSmsRequest.builder() |
| | | .phoneNumbers(phoneNumber) |
| | | .signName("鸿瑞堂") |
| | | .templateCode("SMS_234035865") |
| | | .templateCode(templateCode) |
| | | .templateParam(sendContent) |
| | | .build(); |
| | | |
| | | CompletableFuture<SendSmsResponse> response = client.sendSms(sendSmsRequest); |