Explorar el Código

快手 批量

yumeng hace 5 años
padre
commit
178c356326

+ 9 - 1
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/batch/controller/BatchController.java

@@ -819,6 +819,9 @@ public class BatchController {
         }
 
         return result;
+
+
+
     }
 
     /**
@@ -904,7 +907,12 @@ public class BatchController {
         return result;
     }
 
-
+    /**
+     * 创建创意
+     *
+     * @param requestJson
+     * @return
+     */
     @PostMapping(value = "/createCreative")
     public Result<JSONObject> createCreative(@RequestBody JSONObject requestJson) {
         Result<JSONObject> result = new Result<>();

+ 4 - 3
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/batch/service/impl/BatchServiceImpl.java

@@ -345,8 +345,9 @@ public class BatchServiceImpl implements IBatchService {
                     unitJson.put("deep_conversion_type", groupJson.getInteger("deep_conversion_type"));
                 }
                 // 优化目标
-                if (!Check.isNull(groupJson.getInteger("ocpx_action_type"))) {
-                    unitJson.put("ocpx_action_type", groupJson.getInteger("ocpx_action_type"));
+                Integer ocpx_action_type = groupJson.getInteger("ocpx_action_type");
+                if (!Check.isNull(ocpx_action_type)) {
+                    unitJson.put("ocpx_action_type", ocpx_action_type);
                 }
                 String unitName = groupJson.getString("unitName");
                 if (!Check.isNull(unitName)) {
@@ -361,7 +362,7 @@ public class BatchServiceImpl implements IBatchService {
                         successJson.put("unit_id", returnUnitMap.get("unitId"));
                         successJson.put("unit_name", unitName);
                         successJson.put("scene_id", scene_id);
-                        successJson.put("bid_type", bidType);
+                        successJson.put("ocpx_action_type", ocpx_action_type);
                         successArr.add(successJson);
                     } else {
                         JSONObject failJson = new JSONObject();