|
@@ -188,7 +188,7 @@ public class KuaiShouGroupReportServiceImpl implements IKuaiShouGroupReportServi
|
|
|
String result = HttpUtils.httpPostRequest(url, param, headers);
|
|
String result = HttpUtils.httpPostRequest(url, param, headers);
|
|
|
if (Check.isNull(result)) {
|
|
if (Check.isNull(result)) {
|
|
|
log.error("获取快手广告组异常,返回为空, accountId:{}", advertiserId);
|
|
log.error("获取快手广告组异常,返回为空, accountId:{}", advertiserId);
|
|
|
- errorLogService.addError(advertiserId, startDate, endDate, "group_list", "daily", "返回为空", 2);
|
|
|
|
|
|
|
+ errorLogService.addError(advertiserId, !Check.isNull(startDate) ? startDate : "-", !Check.isNull(endDate) ? endDate : "-", "group_list", "daily", "返回为空", 2);
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
JSONObject resultJson = JSONObject.parseObject(result);
|
|
JSONObject resultJson = JSONObject.parseObject(result);
|
|
@@ -196,7 +196,7 @@ public class KuaiShouGroupReportServiceImpl implements IKuaiShouGroupReportServi
|
|
|
String message = resultJson.getString("message");
|
|
String message = resultJson.getString("message");
|
|
|
if (null == code || code != 0) {
|
|
if (null == code || code != 0) {
|
|
|
log.error("获取快手广告组异常:{},accountId:{}", message, advertiserId);
|
|
log.error("获取快手广告组异常:{},accountId:{}", message, advertiserId);
|
|
|
- errorLogService.addError(advertiserId, startDate, endDate, "group_list", "daily", message, 2);
|
|
|
|
|
|
|
+ errorLogService.addError(advertiserId, !Check.isNull(startDate) ? startDate : "-", !Check.isNull(endDate) ? endDate : "-", "group_list", "daily", message, 2);
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
JSONArray details = resultJson.getJSONObject("data").getJSONArray("details");
|
|
JSONArray details = resultJson.getJSONObject("data").getJSONArray("details");
|