|
@@ -3175,7 +3175,6 @@ public class KuaishouInterfaceServiceImpl implements IKuaishouInterfaceService {
|
|
public List<ConvertVo> getConvertList(Long accountId, String accessToken, Integer type) {
|
|
public List<ConvertVo> getConvertList(Long accountId, String accessToken, Integer type) {
|
|
List<ConvertVo> convertVoList = new ArrayList<>();
|
|
List<ConvertVo> convertVoList = new ArrayList<>();
|
|
try {
|
|
try {
|
|
-
|
|
|
|
log.info("获取转化目标:accountId:{}", accountId);
|
|
log.info("获取转化目标:accountId:{}", accountId);
|
|
String url = PropertiesUtils.getConfig("kuaishou_api_url") + KuaishouInterfaceConstant.CONVERT_LIST;
|
|
String url = PropertiesUtils.getConfig("kuaishou_api_url") + KuaishouInterfaceConstant.CONVERT_LIST;
|
|
Map<String, String> headers = new HashMap<>();
|
|
Map<String, String> headers = new HashMap<>();
|
|
@@ -3184,7 +3183,6 @@ public class KuaishouInterfaceServiceImpl implements IKuaishouInterfaceService {
|
|
JSONObject requestJson = new JSONObject();
|
|
JSONObject requestJson = new JSONObject();
|
|
requestJson.put("advertiser_id", accountId);
|
|
requestJson.put("advertiser_id", accountId);
|
|
requestJson.put("type", type);
|
|
requestJson.put("type", type);
|
|
-
|
|
|
|
String result = HttpUtils.kuaiShouhttpPostRequest(url, requestJson.toJSONString(), headers);
|
|
String result = HttpUtils.kuaiShouhttpPostRequest(url, requestJson.toJSONString(), headers);
|
|
JSONObject resultJson = JSONObject.parseObject(result);
|
|
JSONObject resultJson = JSONObject.parseObject(result);
|
|
Integer code = resultJson.getInteger("code");
|
|
Integer code = resultJson.getInteger("code");
|
|
@@ -3197,11 +3195,8 @@ public class KuaishouInterfaceServiceImpl implements IKuaishouInterfaceService {
|
|
ConvertVo convertVo = JsonUtil.jsonToObj(details.getJSONObject(i), ConvertVo.class);
|
|
ConvertVo convertVo = JsonUtil.jsonToObj(details.getJSONObject(i), ConvertVo.class);
|
|
convertVoList.add(convertVo);
|
|
convertVoList.add(convertVo);
|
|
}
|
|
}
|
|
-
|
|
|
|
}
|
|
}
|
|
-
|
|
|
|
}
|
|
}
|
|
-
|
|
|
|
}
|
|
}
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|