Commit b0270cf7 authored by wujipeng's avatar wujipeng
Browse files

月初-短信通知

parent afada94c
......@@ -67,7 +67,7 @@ public class InTheEarlyTask {
ScheduleEntity scheduleEntity = scheduleService.getUser(dates[0], dates[1]);
Map<String, String> map = new HashMap<>();
map.put("name", scheduleEntity.getName());
SmsUtil.sendMsg(scheduleEntity.getPhone(), "SMS_490030330", map);
SmsUtil.sendMsg(scheduleEntity.getPhone(), "SMS_491150329", map);
//保存短信发送历史记录
smsInformService.save(SmsInformEntity.builder()
.name(scheduleEntity.getName())
......
......@@ -19,9 +19,9 @@ public class SmsUtil {
DefaultProfile profile = DefaultProfile.getProfile(
"cn-hangzhou",
//accessKeyId
"LTAI5tKxtLWiJ2M5ffb2aMQu",
"LTAI5tCAKQWmKVuJZeHCt8gA",
//accessSecret
"N86GOBwrnsmmRkjJsxZTtXsfZOsNBv");
"c3fbBO2cXozBtENz9hjFThdvLamfq9");
IAcsClient client = new DefaultAcsClient(profile);
CommonRequest request = new CommonRequest();
request.setMethod(MethodType.POST);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment