|
@@ -136,7 +136,7 @@ public class KuaishouBatchCampaignPreviewServiceImpl extends ServiceImpl<Kuaisho
|
|
//应用分配方式 1 按账户,2按广告计划,3按广告组
|
|
//应用分配方式 1 按账户,2按广告计划,3按广告组
|
|
Integer appAllocation = appList.getInteger("appAllocation");
|
|
Integer appAllocation = appList.getInteger("appAllocation");
|
|
Integer appId = null;
|
|
Integer appId = null;
|
|
- Integer siteId = null;
|
|
|
|
|
|
+ Long siteId = null;
|
|
String url = null;
|
|
String url = null;
|
|
JSONArray appArr = appList.getJSONArray("appArr");
|
|
JSONArray appArr = appList.getJSONArray("appArr");
|
|
JSONArray urlArr = appList.getJSONArray("urlArr");
|
|
JSONArray urlArr = appList.getJSONArray("urlArr");
|
|
@@ -155,7 +155,7 @@ public class KuaishouBatchCampaignPreviewServiceImpl extends ServiceImpl<Kuaisho
|
|
if (appAllocation == 1) {
|
|
if (appAllocation == 1) {
|
|
if (appNoNull) {
|
|
if (appNoNull) {
|
|
appId = appArr.getJSONObject(0).getInteger("appId");
|
|
appId = appArr.getJSONObject(0).getInteger("appId");
|
|
- siteId = appArr.getJSONObject(0).getInteger("siteId");
|
|
|
|
|
|
+ siteId = appArr.getJSONObject(0).getLong("siteId");
|
|
}
|
|
}
|
|
if (urlNoNull) {
|
|
if (urlNoNull) {
|
|
url = urlArr.getString(0);
|
|
url = urlArr.getString(0);
|
|
@@ -197,7 +197,7 @@ public class KuaishouBatchCampaignPreviewServiceImpl extends ServiceImpl<Kuaisho
|
|
if (appAllocation == 2) {
|
|
if (appAllocation == 2) {
|
|
if (appNoNull) {
|
|
if (appNoNull) {
|
|
appId = appArr.getJSONObject(i).getInteger("appId");
|
|
appId = appArr.getJSONObject(i).getInteger("appId");
|
|
- siteId = appArr.getJSONObject(i).getInteger("siteId");
|
|
|
|
|
|
+ siteId = appArr.getJSONObject(i).getLong("siteId");
|
|
}
|
|
}
|
|
if (urlNoNull) {
|
|
if (urlNoNull) {
|
|
url = urlArr.getString(i);
|
|
url = urlArr.getString(i);
|
|
@@ -219,7 +219,7 @@ public class KuaishouBatchCampaignPreviewServiceImpl extends ServiceImpl<Kuaisho
|
|
appCount--;
|
|
appCount--;
|
|
if (appNoNull) {
|
|
if (appNoNull) {
|
|
appId = appArr.getJSONObject(appCount).getInteger("appId");
|
|
appId = appArr.getJSONObject(appCount).getInteger("appId");
|
|
- siteId = appArr.getJSONObject(appCount).getInteger("siteId");
|
|
|
|
|
|
+ siteId = appArr.getJSONObject(appCount).getLong("siteId");
|
|
}
|
|
}
|
|
if (urlNoNull) {
|
|
if (urlNoNull) {
|
|
url = urlArr.getString(appCount);
|
|
url = urlArr.getString(appCount);
|
|
@@ -281,7 +281,7 @@ public class KuaishouBatchCampaignPreviewServiceImpl extends ServiceImpl<Kuaisho
|
|
if (appAllocation == 2) {
|
|
if (appAllocation == 2) {
|
|
if (appNoNull) {
|
|
if (appNoNull) {
|
|
appId = appArr.getJSONObject(i).getInteger("appId");
|
|
appId = appArr.getJSONObject(i).getInteger("appId");
|
|
- siteId = appArr.getJSONObject(i).getInteger("siteId");
|
|
|
|
|
|
+ siteId = appArr.getJSONObject(i).getLong("siteId");
|
|
}
|
|
}
|
|
if (urlNoNull) {
|
|
if (urlNoNull) {
|
|
url = urlArr.getString(i);
|
|
url = urlArr.getString(i);
|
|
@@ -309,7 +309,7 @@ public class KuaishouBatchCampaignPreviewServiceImpl extends ServiceImpl<Kuaisho
|
|
appCount--;
|
|
appCount--;
|
|
if (appNoNull) {
|
|
if (appNoNull) {
|
|
appId = appArr.getJSONObject(appCount).getInteger("appId");
|
|
appId = appArr.getJSONObject(appCount).getInteger("appId");
|
|
- siteId = appArr.getJSONObject(appCount).getInteger("siteId");
|
|
|
|
|
|
+ siteId = appArr.getJSONObject(appCount).getLong("siteId");
|
|
}
|
|
}
|
|
if (urlNoNull) {
|
|
if (urlNoNull) {
|
|
url = urlArr.getString(appCount);
|
|
url = urlArr.getString(appCount);
|