瀏覽代碼

获取定向包非空校验

yangzian 3 年之前
父節點
當前提交
ec0dc2e61a

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

@@ -488,7 +488,12 @@ public class AiBytedanceAdvertiserStrategyController {
 			Result resultUnion = aiBytedanceAdvertiserStrategyService.getAdAudiencePackage(accountId,landingType,"UNION");
 			List listDefault = (List) resultDefault.getResult();
 			List listUnion = (List) resultUnion.getResult();
-			listDefault.addAll(listUnion);
+
+			if (!Check.isNull(listDefault)){
+				listDefault.addAll(listUnion);
+			}else {
+				listDefault = listUnion;
+			}
 			return Result.successMsg("获取定向包成功。",listDefault);
 		}catch (Exception e){
 			log.error("获取定向包异常",e);