|
@@ -145,10 +145,13 @@ public class AiKuaishouAdvertiserStrategyController {
|
|
|
result.error500("未找到对应实体");
|
|
|
} else {
|
|
|
Integer singleAppId = aiKuaishouAdvertiserStrategy.getSingleAppid();
|
|
|
- if (null != singleAppId && singleAppId == 1) {
|
|
|
- Integer appId = Integer.parseInt(JSONArray.parseArray(aiKuaishouAdvertiserStrategy.getAppIdArray()).getString(0));
|
|
|
- aiKuaishouAdvertiserStrategy.setAppId(appId);
|
|
|
+ if (aiKuaishouAdvertiserStrategy.getCampaignType() == 2 || aiKuaishouAdvertiserStrategy.getCampaignType() == 7) {
|
|
|
+ if (null != singleAppId && singleAppId == 1) {
|
|
|
+ Integer appId = Integer.parseInt(JSONArray.parseArray(aiKuaishouAdvertiserStrategy.getAppIdArray()).getString(0));
|
|
|
+ aiKuaishouAdvertiserStrategy.setAppId(appId);
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
boolean ok = aiKuaishouAdvertiserStrategyService.updateById(aiKuaishouAdvertiserStrategy);
|
|
|
if (ok) {
|
|
|
result.success("修改成功!");
|