|
@@ -202,9 +202,12 @@ public class ByteDanceVideoInfoController {
|
|
if (!isValidToken) {
|
|
if (!isValidToken) {
|
|
return new CallbackResponse(new BaseResponse(400, "invalid token"), 0);
|
|
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);
|
|
log.info("结果:" + result);
|
|
- if (!Check.isNull(result)) {
|
|
|
|
|
|
+ /* if (!Check.isNull(result)) {
|
|
JSONObject content = result.getJSONObject("data").getJSONObject("content");
|
|
JSONObject content = result.getJSONObject("data").getJSONObject("content");
|
|
if (!Check.isNull(content)) {
|
|
if (!Check.isNull(content)) {
|
|
Long agentId = content.getLong("agent_id");
|
|
Long agentId = content.getLong("agent_id");
|
|
@@ -212,7 +215,7 @@ public class ByteDanceVideoInfoController {
|
|
Long promotionId = content.getLong("promotion_id");//计划id
|
|
Long promotionId = content.getLong("promotion_id");//计划id
|
|
byteDanceVideoInfoService.getIllegalVideosPushInfo(agentId, illegalMaterialIds, promotionId);
|
|
byteDanceVideoInfoService.getIllegalVideosPushInfo(agentId, illegalMaterialIds, promotionId);
|
|
}
|
|
}
|
|
- }
|
|
|
|
|
|
+ }*/
|
|
} catch (IOException e) {
|
|
} catch (IOException e) {
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|
|
}
|
|
}
|
|
@@ -225,7 +228,7 @@ public class ByteDanceVideoInfoController {
|
|
* 获取广告违规素材详情
|
|
* 获取广告违规素材详情
|
|
*/
|
|
*/
|
|
@RequestMapping(value = "/getIllegalVideosPushInfo")
|
|
@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);
|
|
byteDanceVideoInfoService.getIllegalVideosPushInfo(agentId, illegalMaterialIds, promotionId);
|
|
}
|
|
}
|
|
}
|
|
}
|