Browse Source

根据下载链接获取应用包名并返回受众平台

yangzian 4 năm trước cách đây
mục cha
commit
0c93d4772e

+ 2 - 2
jeecg-boot-bytedance/src/main/java/org/jeecg/modules/bytedance/advertise/service/impl/AiBytedanceAdvertiserStrategyServiceImpl.java

@@ -1147,8 +1147,8 @@ public class AiBytedanceAdvertiserStrategyServiceImpl extends ServiceImpl<AiByte
         //创意标签
         aiBytedanceAdvertiserStrategy.setCreativeAdKeywords(org.apache.commons.lang3.StringUtils.join(aiBytedanceAdvertiserStrategy.getAdKeywords(), ","));
         aiBytedanceAdvertiserStrategy.setCreateTime(new Date());
-        //默认组数量为 1
-        aiBytedanceAdvertiserStrategy.setCampaignAdCnt(aiBytedanceAdvertiserStrategy.getCampaignAdCnt() == 0L ? 1 : aiBytedanceAdvertiserStrategy.getCampaignAdCnt());
+        //默认组数量为 1 -前端已修改完成
+        //aiBytedanceAdvertiserStrategy.setCampaignAdCnt(aiBytedanceAdvertiserStrategy.getCampaignAdCnt() == 0L ? 1 : aiBytedanceAdvertiserStrategy.getCampaignAdCnt());
 
         //同一账户下 只能有一条信息为开启
         //关闭 账户下 其他数据信息(不包含本条id信息) 状态为 关闭

+ 2 - 2
jeecg-boot-module-system/src/main/java/org/jeecg/modules/bytedance/advertise/controller/AiBytedanceAdvertiserStrategyController.java

@@ -365,12 +365,12 @@ public class AiBytedanceAdvertiserStrategyController {
 			// android 根据附件地址 读取 apk 信息
 			map = ApkUtils.readAPK(urlPath);
 			if (!map.get("code").toString().equals("-1")){
-				map.put("platform", "android");
+				map.put("platform", "APP_ANDROID");
 			}else {
 				//ios
 				map = ApkUtils.readIPA(urlPath);
 				if (!map.get("code").toString().equals("-1")){
-					map.put("platform", "ios");
+					map.put("platform", "APP_IOS");
 				}
 			}
 			return Result.successMsg("根据下载链接获取应用包名成功", map);