Commit fac55550 authored by shiyu's avatar shiyu

模板消息2

parent 962ed0d3
......@@ -197,7 +197,7 @@ public class SendMsgServiceImpl implements SendMsgService {
logger.info("=============发送拍卖出价被超越通知模板消息成功 ===========");
return Result.success();
} catch (Exception e) {
e.printStackTrace();
logger.error("发送拍卖出价被超越通知模板消息 error :{}", e);
}
return Result.failed();
}
......@@ -250,7 +250,7 @@ public class SendMsgServiceImpl implements SendMsgService {
logger.info("=============发送竞拍成功模板消息 成功 ===========");
return Result.success();
} catch (Exception e) {
e.printStackTrace();
logger.error("发送竞拍成功模板消息 error :{}", e);
}
return Result.failed();
}
......@@ -301,7 +301,7 @@ public class SendMsgServiceImpl implements SendMsgService {
logger.info("=============发送中拍通知付款模板消息 成功 ===========");
return Result.success();
} catch (Exception e) {
e.printStackTrace();
logger.error("发送中拍通知付款模板消息 error :{}", e);
}
return Result.failed();
}
......@@ -315,7 +315,7 @@ public class SendMsgServiceImpl implements SendMsgService {
OkHttpUtil okHttpUtil = OkHttpUtil.builder().url(url);
Map<String, Object> map = new HashMap<>();
map.put("touser", openId);
map.put("template_id", "VVpkASCM6OgdbyERsy--hjPAI7fWuNJwtDDMR5EqVnM");
map.put("template_id", "VVpkASCM6OgdbyERsy--hufo5PF1RvK2LfxgIsbGrR4");
Map<String, Object> miniprogramMap = new HashMap<>();
miniprogramMap.put("appid", APPLET_APPID);
StringBuffer stringBuffer = new StringBuffer(AUCTION_MSG_URL);
......@@ -331,10 +331,10 @@ public class SendMsgServiceImpl implements SendMsgService {
put("value", auctionOfferNoticeMsg.getItemName().substring(0, 20));
}});
paramMap.put("amount2", new HashMap() {{
put("value", auctionOfferNoticeMsg.getCurrentPrice());
put("value", auctionOfferNoticeMsg.getCurrentPrice() + "元");
}});
String content = "预计获得利润 " + auctionOfferNoticeMsg.getProfit() + "元";
paramMap.put("time4", new HashMap() {{
paramMap.put("thing3", new HashMap() {{
put("value", content);
}});
map.put("data", paramMap);
......@@ -352,7 +352,7 @@ public class SendMsgServiceImpl implements SendMsgService {
logger.info("=============发送通知分销商竞拍成功模板消息 成功 ===========");
return Result.success();
} catch (Exception e) {
e.printStackTrace();
logger.error("发送通知分销商竞拍成功模板消息 error :{}", e);
}
return Result.failed();
}
......@@ -403,7 +403,7 @@ public class SendMsgServiceImpl implements SendMsgService {
logger.info("=============发送通竞拍即将结束模板消息 成功 ===========");
return Result.success();
} catch (Exception e) {
e.printStackTrace();
logger.error("发送通竞拍即将结束模板消息 error :{}", e);
}
return Result.failed();
}
......@@ -453,7 +453,7 @@ public class SendMsgServiceImpl implements SendMsgService {
logger.info("=============发送竞拍结束模板消息 成功 ===========");
return Result.success();
} catch (Exception e) {
e.printStackTrace();
logger.error("发送竞拍结束模板消息 error :{}", e);
}
return Result.failed();
}
......@@ -501,7 +501,7 @@ public class SendMsgServiceImpl implements SendMsgService {
logger.info("=============发送出价通知对应分销商模板消息 成功 ===========");
return Result.success();
} catch (Exception e) {
e.printStackTrace();
logger.error("发送出价通知对应分销商模板消息 error :{}", e);
}
return Result.failed();
}
......
......@@ -95,6 +95,7 @@ public class AutoSendMsgJob {
try {
//查询一小时内拍卖截拍的商品,通知参与过出价的用户即将截拍
List<AuctionConfig> auctionConfigList = auctionConfigDao.findEndList();
logger.info(">>>>>> 一小时内即将截拍的商品数量 :{} <<<<<<<", auctionConfigList.size());
auctionConfigList.forEach(auctionConfig -> {
long itemId = auctionConfig.getItemId();
//查询该商品所有出价记录
......
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