فهرست منبع

Merge branch 'master' of http://git.tjyourong.com.cn/ctop/adsp-cloud

zhaoxian 3 سال پیش
والد
کامیت
015c289af0

+ 1 - 1
jeecg-boot-material-view/src/main/java/org/jeecg/ctop/material/controller/KuaiShouMaterialStareController.java

@@ -17,7 +17,7 @@ import java.util.Map;
 import java.util.Set;
 
 /**
- * 快手-运营数据盯盘-经理&个人-end-test
+ * 快手-运营数据盯盘-经理&个人-end-master
  */
 @Slf4j
 @RestController

+ 8 - 1
jeecg-boot-module-system/src/main/java/cn/com/ctop/kuaishou/modules/batch/controller/DingPanController.java

@@ -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("修改成功");