记得上下班打卡 | git大法好,push需谨慎

Commit d4ffef40 authored by 胡佳晨's avatar 胡佳晨

Merge remote-tracking branch 'origin/dev-sweet' into dev-sweet

parents 52b2c450 2d81d0f8
......@@ -64,7 +64,8 @@ public class SweetWechatTemplateServiceImpl {
SweetWechatUser sweetWechatUser = redisDataUtils.getSweetWechatUser(remindInfo.getUnionId());
KylinPerformanceVo performanceVo = (KylinPerformanceVo) redisUtil.get(KylinRedisConst.PERFORMANCES.concat(remindInfo.getPerformancesId()));
if (null == sweetWechatUser || null == performanceVo) {
log.info("\n无用户或者演出数据");
log.info("无用户或者演出数据:[UnionId=[{}], [getPerformancesId=[{}]",
remindInfo.getUnionId(), remindInfo.getPerformancesId());
continue;
}
KylinTicketTimesVo kylinTicketTimesVo = performanceVo.getTicketTimeList().get(0);
......@@ -79,12 +80,16 @@ public class SweetWechatTemplateServiceImpl {
String stopSellTime = performanceVo.getStopSellTime();
if (1 == DateUtil.compareStrDay(nowTimeStr, stopSellTime)) { // 超过售卖期 不推 删redis
log.info("\n超过售卖期");
log.info("超过售卖期:[nowTimeStr=[{}], [stopSellTime=[{}]",
nowTimeStr, stopSellTime);
redisDataUtils.delSweetRemind(remindInfo.getUnionId());
continue;
}
if (-1 == DateUtil.compareStrDay(sellTimeLocalNewStr, nowTimeStr)) { // 还没到售卖期
log.info("\n还没到售卖期");
if (-1 == DateUtil.compareStrDay(nowTimeStr, sellTimeLocalNewStr)) { // 还没到售卖期
log.info("还没到售卖期:[nowTimeStr=[{}], [sellTimeLocalNewStr=[{}]",
nowTimeStr, sellTimeLocalNewStr);
continue;
}
// 发送模板消息接口
......@@ -114,7 +119,7 @@ public class SweetWechatTemplateServiceImpl {
} catch (WxErrorException e) {
log.error("小程序演出提醒消息发送异常", e);
}
log.info(msgId);
log.info("发送成功:[msgId=[{}]", msgId);
} catch (Exception e) {
log.error("小程序演出提醒消息处理异常", e);
}
......
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