Commit 6bca0717eb445d1310f9108d30c273560eca3e24

Authored by liwei2917
1 parent 849fc78a

直播审核

src/main/java/com/cnlive/shenhe/controller/LiveController.java
... ... @@ -254,25 +254,25 @@ public class LiveController {
254 254 String showMsg = "";
255 255 for (String shyLiveId : shyLiveIds) {
256 256 ShyLive shyLive = liveService.selectByPrimaryKey(Integer.parseInt(shyLiveId));
257   -// JSONObject result = null;
258   -// try {
259   -// result = Pass.auditPass(shyLive.getActivity_id(), 6, msg, msg, shyLive.getCallback());
260   -// } catch (Exception e) {
261   -// logger.error("直播视频审核失败,id==" + shyLiveId, e);
262   -// showMsg = showMsg + "," + shyLive.getActivity_id() + " 拒绝请求失败";
263   -// break;
264   -// }
265   -// if (result == null) {
266   -// logger.error("直播视频审核失败且接口错误没有返回信息,id==" + shyLiveId);
267   -// showMsg = showMsg + "," + shyLive.getActivity_id() + " 拒绝请求失败";
268   -// break;
269   -// }
270   -// Integer code = result.getInteger("code");
271   -// if (code != 0) {
272   -// logger.error("直播视频审核失败,id:{},code:{}", shyLiveId, code);
273   -// showMsg = showMsg + "," + shyLive.getActivity_id() + " " + result.getString("msg");
274   -// break;
275   -// }
  257 + JSONObject result = null;
  258 + try {
  259 + result = Pass.auditPass(shyLive.getActivity_id(), 6, msg, msg, shyLive.getCallback());
  260 + } catch (Exception e) {
  261 + logger.error("直播视频审核失败,id==" + shyLiveId, e);
  262 + showMsg = showMsg + "," + shyLive.getActivity_id() + " 拒绝请求失败";
  263 + break;
  264 + }
  265 + if (result == null) {
  266 + logger.error("直播视频审核失败且接口错误没有返回信息,id==" + shyLiveId);
  267 + showMsg = showMsg + "," + shyLive.getActivity_id() + " 拒绝请求失败";
  268 + break;
  269 + }
  270 + Integer code = result.getInteger("code");
  271 + if (code != 0) {
  272 + logger.error("直播视频审核失败,id:{},code:{}", shyLiveId, code);
  273 + showMsg = showMsg + "," + shyLive.getActivity_id() + " " + result.getString("msg");
  274 + break;
  275 + }
276 276 int i = liveService.updateLive(Integer.parseInt(shyLiveId), userId,"", 4, msg);
277 277 if (i == 0) {
278 278 showMsg = showMsg + "," + shyLive.getActivity_id() + " 更新失败";
... ...