Commit 1b800679 by huluobin

预约提醒文案

parent 317833c8
...@@ -38,8 +38,12 @@ public class MiniappPushMsgServiceImpl implements PushMsgService { ...@@ -38,8 +38,12 @@ public class MiniappPushMsgServiceImpl implements PushMsgService {
@Override @Override
public void sendScheduleMsg(String openId, String scheduleName, Date arriveTime, String departmentName, String address) { public void sendScheduleMsg(String openId, String scheduleName, Date arriveTime, String departmentName, String address) {
log.info("推送预约提醒订阅消息"); log.info("推送预约提醒订阅消息");
String tips;
String tips = "距预约剩余1小时,请准时到店,超时将取消"; if ((arriveTime.getTime() - System.currentTimeMillis()) / 1000 / 60 < 60) {
tips = "您的预约时间很快到了,请准时到店,迟到15分钟将会自动取消";
} else {
tips = "距预约剩余1小时,请准时到店,超时将取消";
}
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
this.send(WxSubscribeMessageRequest.builder() this.send(WxSubscribeMessageRequest.builder()
.toUser(openId) .toUser(openId)
......
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