|
@@ -2155,9 +2155,12 @@ public class KuaishouInterfaceServiceImpl implements IKuaishouInterfaceService {
|
|
JSONArray creatives = programJson.getJSONArray("creatives");
|
|
JSONArray creatives = programJson.getJSONArray("creatives");
|
|
if (creatives != null && !creatives.isEmpty()) {
|
|
if (creatives != null && !creatives.isEmpty()) {
|
|
JSONObject jsonObject = creatives.getJSONObject(0);
|
|
JSONObject jsonObject = creatives.getJSONObject(0);
|
|
- if (!Check.isNull(jsonObject)) {
|
|
|
|
- for (Object creativeId : add_creative_ids) {
|
|
|
|
- landpagePackageService.createLandPageAndUnit(jsonObject.getLong("site_id"), Long.valueOf(String.valueOf(creativeId)), programJson.getLong("unit_id"), programJson.getLong("advertiser_id"));
|
|
|
|
|
|
+ Long siteId = jsonObject.getLong("site_id");
|
|
|
|
+ if (!Check.isNull(siteId)) {
|
|
|
|
+ if (!Check.isNull(jsonObject)) {
|
|
|
|
+ for (Object creativeId : add_creative_ids) {
|
|
|
|
+ landpagePackageService.createLandPageAndUnit(siteId, Long.valueOf(String.valueOf(creativeId)), programJson.getLong("unit_id"), programJson.getLong("advertiser_id"));
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|