|
@@ -3194,8 +3194,8 @@ public class KuaishouInterfaceServiceImpl implements IKuaishouInterfaceService {
|
|
headers.put("Content-Type", "application/json");
|
|
headers.put("Content-Type", "application/json");
|
|
headers.put("Access-Token", token);
|
|
headers.put("Access-Token", token);
|
|
Map<String, Object> param = new HashMap<>();
|
|
Map<String, Object> param = new HashMap<>();
|
|
- JSONArray viewComps = new JSONArray();
|
|
|
|
- viewComps.add(viewComp);
|
|
|
|
|
|
+ /* JSONArray viewComps = new JSONArray();
|
|
|
|
+ viewComps.add(viewComp);*/
|
|
param.put("advertiser_id", accountId);
|
|
param.put("advertiser_id", accountId);
|
|
param.put("page_size", 500);
|
|
param.put("page_size", 500);
|
|
String result = HttpUtils.httpPostRequest(url, param, headers);
|
|
String result = HttpUtils.httpPostRequest(url, param, headers);
|
|
@@ -3215,18 +3215,15 @@ public class KuaishouInterfaceServiceImpl implements IKuaishouInterfaceService {
|
|
for (int j = 0; j < compsArr.size(); j++) {
|
|
for (int j = 0; j < compsArr.size(); j++) {
|
|
JSONObject compJson = compsArr.getJSONObject(j);
|
|
JSONObject compJson = compsArr.getJSONObject(j);
|
|
if (!Check.isNull(compJson)) {
|
|
if (!Check.isNull(compJson)) {
|
|
- Integer type = compJson.getInteger("type");
|
|
|
|
- if (type == 7) {
|
|
|
|
- JSONObject props = compJson.getJSONObject("props");
|
|
|
|
- if (!Check.isNull(props)) {
|
|
|
|
- Long returnAppId = props.getLong("appId");
|
|
|
|
- if (returnAppId.equals(appId)) {
|
|
|
|
- JSONObject returnJson = new JSONObject();
|
|
|
|
- returnJson.put("siteId", jsonObject.getString("id"));
|
|
|
|
- returnJson.put("name", jsonObject.getString("name"));
|
|
|
|
- returnJson.put("appId", returnAppId);
|
|
|
|
- returnArr.add(returnJson);
|
|
|
|
- }
|
|
|
|
|
|
+ JSONObject props = compJson.getJSONObject("props");
|
|
|
|
+ if (!Check.isNull(props)) {
|
|
|
|
+ Long returnAppId = props.getLong("appId");
|
|
|
|
+ if (returnAppId.equals(appId)) {
|
|
|
|
+ JSONObject returnJson = new JSONObject();
|
|
|
|
+ returnJson.put("siteId", jsonObject.getString("id"));
|
|
|
|
+ returnJson.put("name", jsonObject.getString("name"));
|
|
|
|
+ returnJson.put("appId", returnAppId);
|
|
|
|
+ returnArr.add(returnJson);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|