Browse Source

违规广告 入库+发微信消息

zhaoxian 1 năm trước cách đây
mục cha
commit
f65a088253

+ 7 - 4
jeecg-boot-module-system/src/main/java/cn/com/ctop/toutiao/modules/material/controller/ByteDanceVideoInfoController.java

@@ -202,9 +202,12 @@ public class ByteDanceVideoInfoController {
             if (!isValidToken) {
                 return new CallbackResponse(new BaseResponse(400, "invalid token"), 0);
             }
-            JSONObject result = JSONObject.parseObject(new String(AuthTokenUtil.readAsBytes(cacher)));
+            System.out.println("----------------------byte格式:"+AuthTokenUtil.readAsBytes(cacher));;
+            String s = new String(AuthTokenUtil.readAsBytes(cacher));
+            System.out.println("-------------内容" + s);
+            JSONObject result = (JSONObject) JSONObject.parse(new String(AuthTokenUtil.readAsBytes(cacher)));
             log.info("结果:" + result);
-            if (!Check.isNull(result)) {
+      /*      if (!Check.isNull(result)) {
                 JSONObject content = result.getJSONObject("data").getJSONObject("content");
                 if (!Check.isNull(content)) {
                     Long agentId = content.getLong("agent_id");
@@ -212,7 +215,7 @@ public class ByteDanceVideoInfoController {
                     Long promotionId = content.getLong("promotion_id");//计划id
                     byteDanceVideoInfoService.getIllegalVideosPushInfo(agentId, illegalMaterialIds, promotionId);
                 }
-            }
+            }*/
         } catch (IOException e) {
             e.printStackTrace();
         }
@@ -225,7 +228,7 @@ public class ByteDanceVideoInfoController {
      * 获取广告违规素材详情
      */
     @RequestMapping(value = "/getIllegalVideosPushInfo")
-    public void getIllegalVideosPushInfo(Long agentId,@RequestBody JSONArray illegalMaterialIds, Long promotionId) {
+    public void getIllegalVideosPushInfo(Long agentId, @RequestBody JSONArray illegalMaterialIds, Long promotionId) {
         byteDanceVideoInfoService.getIllegalVideosPushInfo(agentId, illegalMaterialIds, promotionId);
     }
 }