|
@@ -11,6 +11,8 @@ import cn.com.ctop.kuaishou.modules.report.service.IEtlKuaiShouGroupDailyReportS
|
|
|
import com.alibaba.fastjson.JSONArray;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
+import com.google.gson.JsonObject;
|
|
|
+import org.apache.commons.lang3.StringUtils;
|
|
|
import org.jeecg.common.api.vo.Result;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
@@ -111,7 +113,12 @@ public class DingPanController {
|
|
|
json.put("impressionUrl", clickTrackUr);
|
|
|
json.put("clickTrackUrl", clickTrackUr);
|
|
|
}
|
|
|
- batchService.updateCreative(json, token);
|
|
|
+ JSONObject jsonObject = batchService.updateCreative(json, token);
|
|
|
+ if (!StringUtils.equals("0",jsonObject.getString("code"))){
|
|
|
+ result.setSuccess(false);
|
|
|
+ result.setMessage(jsonObject.getString("message"));
|
|
|
+ return result;
|
|
|
+ }
|
|
|
}
|
|
|
result.setSuccess(true);
|
|
|
result.setResult("修改成功");
|