Commit cc0ccdc2555352ac73310b38cf5c4c2f240b0a1c

Authored by 王言钊
1 parent 7a61dce4

新增直播申请短信通知功能2

src/main/java/com/cnlive/shenhe/job/LiveApplyJob.java
@@ -111,6 +111,7 @@ public class LiveApplyJob { @@ -111,6 +111,7 @@ public class LiveApplyJob {
111 if (CommonUtils.isNotNull(shySites)) { 111 if (CommonUtils.isNotNull(shySites)) {
112 liveApply.setSpid_desc(shySites.getName()); 112 liveApply.setSpid_desc(shySites.getName());
113 } 113 }
  114 + int i = 0;
114 //循环需要发送邮件的邮箱 115 //循环需要发送邮件的邮箱
115 for (ShyEmail shyEmail : shyEmailList) { 116 for (ShyEmail shyEmail : shyEmailList) {
116 String startTime = CommonUtils.formatDate(liveApply.getPre_start_time(), "yyyy-MM-dd HH:mm:ss"); 117 String startTime = CommonUtils.formatDate(liveApply.getPre_start_time(), "yyyy-MM-dd HH:mm:ss");
@@ -130,7 +131,6 @@ public class LiveApplyJob { @@ -130,7 +131,6 @@ public class LiveApplyJob {
130 emailparams.put("sign", OpenUtil.sign(emailparams, appKey)); 131 emailparams.put("sign", OpenUtil.sign(emailparams, appKey));
131 HttpUtil httpUtil = HttpUtil.init(); 132 HttpUtil httpUtil = HttpUtil.init();
132 httpUtil.setParamMap(emailparams); 133 httpUtil.setParamMap(emailparams);
133 - int i = 0;  
134 try { 134 try {
135 Map<String, String> post = httpUtil.post(url); 135 Map<String, String> post = httpUtil.post(url);
136 logger.info("当前发送邮件用户为:" + emailAddr + ",发送邮件的直播申请审核云id为:" + liveApply.getId() + "结果为:" + post.get("result")); 136 logger.info("当前发送邮件用户为:" + emailAddr + ",发送邮件的直播申请审核云id为:" + liveApply.getId() + "结果为:" + post.get("result"));