Commit 4965bf073669322a68d283a3cd3ae5b8905f33e8
1 parent
a6581ed6
频道审核修改
Showing
3 changed files
with
3 additions
and
1 deletions
src/main/java/com/cnlive/shenhe/api/ChannelControllerApi.java
| @@ -56,6 +56,7 @@ public class ChannelControllerApi { | @@ -56,6 +56,7 @@ public class ChannelControllerApi { | ||
| 56 | shyChannel1.setChannel_img(json.getString("face")); | 56 | shyChannel1.setChannel_img(json.getString("face")); |
| 57 | shyChannel1.setCallback(json.getString("callback")); | 57 | shyChannel1.setCallback(json.getString("callback")); |
| 58 | shyChannel1.setSp_id(sp_id); | 58 | shyChannel1.setSp_id(sp_id); |
| 59 | + shyChannel1.setAuditor(null); | ||
| 59 | shyChannel1.setOffline(0);//是否下线 0表示正常 1表示下线 | 60 | shyChannel1.setOffline(0);//是否下线 0表示正常 1表示下线 |
| 60 | shyChannel1.setUpdated_at(CommonUtils.getCurrentTime()); | 61 | shyChannel1.setUpdated_at(CommonUtils.getCurrentTime()); |
| 61 | boolean YorN = channelService.updateshyChannel(shyChannel1); | 62 | boolean YorN = channelService.updateshyChannel(shyChannel1); |
src/main/java/com/cnlive/shenhe/utils/AuditPass.java
| @@ -85,6 +85,7 @@ public class AuditPass { | @@ -85,6 +85,7 @@ public class AuditPass { | ||
| 85 | * @return | 85 | * @return |
| 86 | */ | 86 | */ |
| 87 | public JSONObject commentPass(JSONObject json, String callBack) { | 87 | public JSONObject commentPass(JSONObject json, String callBack) { |
| 88 | + logger.info("评论审核回调:param:{}", json); | ||
| 88 | Map<String, String> map = new HashMap<>(); | 89 | Map<String, String> map = new HashMap<>(); |
| 89 | map.put("param", json.toJSONString()); | 90 | map.put("param", json.toJSONString()); |
| 90 | String result = HttpUtil.form(callBack, map); | 91 | String result = HttpUtil.form(callBack, map); |
| @@ -98,6 +99,7 @@ public class AuditPass { | @@ -98,6 +99,7 @@ public class AuditPass { | ||
| 98 | * @return | 99 | * @return |
| 99 | */ | 100 | */ |
| 100 | public JSONObject channelPass(JSONObject json, String callBack) { | 101 | public JSONObject channelPass(JSONObject json, String callBack) { |
| 102 | + logger.info("频道审核回调:param:{}", json); | ||
| 101 | Map<String, String> map = new HashMap<>(); | 103 | Map<String, String> map = new HashMap<>(); |
| 102 | map.put("param", json.toJSONString()); | 104 | map.put("param", json.toJSONString()); |
| 103 | String result = HttpUtil.form(callBack, map); | 105 | String result = HttpUtil.form(callBack, map); |
src/main/resources/templates/page/channel.html
| @@ -518,7 +518,6 @@ | @@ -518,7 +518,6 @@ | ||
| 518 | //提交打回 | 518 | //提交打回 |
| 519 | function repulseSubmit() { | 519 | function repulseSubmit() { |
| 520 | var ids = $('#channel_id_hidden').val(); | 520 | var ids = $('#channel_id_hidden').val(); |
| 521 | - alert(ids); | ||
| 522 | var msg = $("#reviewMsg").val(); | 521 | var msg = $("#reviewMsg").val(); |
| 523 | $.post("/channel/repulse?ids=" + ids + "&msg=" + msg, function (data) { | 522 | $.post("/channel/repulse?ids=" + ids + "&msg=" + msg, function (data) { |
| 524 | if (data.errorCode == 0) { | 523 | if (data.errorCode == 0) { |