Commit f46c37d3ed7560aeee0ccf18ca0e7aef9f0691b7
1 parent
62048fec
update
Showing
1 changed file
with
5 additions
and
5 deletions
src/main/java/com/cnlive/shenhe/job/CommentsJob.java
| @@ -65,14 +65,14 @@ public class CommentsJob { | @@ -65,14 +65,14 @@ public class CommentsJob { | ||
| 65 | JSONObject result = new JSONObject(); | 65 | JSONObject result = new JSONObject(); |
| 66 | try { | 66 | try { |
| 67 | result = Pass.commentPass(json1, comments.getCallback()); | 67 | result = Pass.commentPass(json1, comments.getCallback()); |
| 68 | - Integer code = result.getInteger("code"); | ||
| 69 | - if (0 == code) { | ||
| 70 | - int i = commentsService.updateComment(comments.getId(), CommonConst.AUDIT_SUCCESS, json1.getString("msg")); | 68 | + Integer errorCode = result.getInteger("errorCode"); |
| 69 | + if (0 == errorCode) { | ||
| 70 | + int i = commentsService.updateComment(comments.getId(), CommonConst.AUDIT_SUCCESS, json1.getString("errorMessage")); | ||
| 71 | if (i != 1) { | 71 | if (i != 1) { |
| 72 | - logger.error("评论审核回调失败,activity_id:{},code:{},msg:{}", comments.getActivity_id(), code, result.getString("msg")); | 72 | + logger.error("评论审核回调失败,activity_id:{},errorCode:{},errorMessage:{}", comments.getActivity_id(), errorCode, result.getString("errorMessage")); |
| 73 | } | 73 | } |
| 74 | } else { | 74 | } else { |
| 75 | - logger.error("评论审核回调失败,activity_id:{},code:{},msg:{}", comments.getActivity_id(), code, result.getString("msg")); | 75 | + logger.error("评论审核回调失败,activity_id:{},errorCode:{},errorMessage:{}", comments.getActivity_id(), errorCode, result.getString("errorMessage")); |
| 76 | } | 76 | } |
| 77 | } catch (Exception e) { | 77 | } catch (Exception e) { |
| 78 | logger.error("评论回调失败,activity_id:{}", comments.getActivity_id(),e); | 78 | logger.error("评论回调失败,activity_id:{}", comments.getActivity_id(),e); |