Commit eb4f51d0a2f8eb4ed6a246cff6304fc508820695
1 parent
9863e2a9
新增直播申请短信通知功能4
Showing
1 changed file
with
0 additions
and
3 deletions
src/main/java/com/cnlive/shenhe/job/LiveApplyJob.java
| @@ -139,14 +139,12 @@ public class LiveApplyJob { | @@ -139,14 +139,12 @@ public class LiveApplyJob { | ||
| 139 | noticeState = CommonConst.NOTICE_FAIL; | 139 | noticeState = CommonConst.NOTICE_FAIL; |
| 140 | noticeMsg = noticeMsg + "\n" + dateTime + " 邮件服务器调用失败,result为空"; | 140 | noticeMsg = noticeMsg + "\n" + dateTime + " 邮件服务器调用失败,result为空"; |
| 141 | i += 1; | 141 | i += 1; |
| 142 | - break; | ||
| 143 | } | 142 | } |
| 144 | Integer code = result.getInteger("errorCode"); | 143 | Integer code = result.getInteger("errorCode"); |
| 145 | if (code != 0) { | 144 | if (code != 0) { |
| 146 | noticeState = CommonConst.NOTICE_FAIL; | 145 | noticeState = CommonConst.NOTICE_FAIL; |
| 147 | noticeMsg = noticeMsg + "\n" + dateTime + " 邮件服务器调用失败,result返回消息为:" + result.getString("errorMessage"); | 146 | noticeMsg = noticeMsg + "\n" + dateTime + " 邮件服务器调用失败,result返回消息为:" + result.getString("errorMessage"); |
| 148 | i += 1; | 147 | i += 1; |
| 149 | - break; | ||
| 150 | } else { | 148 | } else { |
| 151 | noticeState = CommonConst.NOTICE_SUCCESS; | 149 | noticeState = CommonConst.NOTICE_SUCCESS; |
| 152 | noticeMsg = noticeMsg + "\n" + dateTime + " 邮件" + emailAddr + "(" + shyEmail.getRemark() + ")发送成功"; | 150 | noticeMsg = noticeMsg + "\n" + dateTime + " 邮件" + emailAddr + "(" + shyEmail.getRemark() + ")发送成功"; |
| @@ -156,7 +154,6 @@ public class LiveApplyJob { | @@ -156,7 +154,6 @@ public class LiveApplyJob { | ||
| 156 | noticeState = CommonConst.NOTICE_FAIL; | 154 | noticeState = CommonConst.NOTICE_FAIL; |
| 157 | noticeMsg = noticeMsg + "\n" + dateTime + " 邮件服务器调用失败,服务器报错了"; | 155 | noticeMsg = noticeMsg + "\n" + dateTime + " 邮件服务器调用失败,服务器报错了"; |
| 158 | i += 1; | 156 | i += 1; |
| 159 | - break; | ||
| 160 | } | 157 | } |
| 161 | String taskId = "003_01"; | 158 | String taskId = "003_01"; |
| 162 | String signatureId = "0"; | 159 | String signatureId = "0"; |