|
@@ -698,10 +698,10 @@ public class KuaishouInterfaceServiceImpl implements IKuaishouInterfaceService {
|
|
|
var creative = JSONObject.toJavaObject(detailJson, KuaishouReportDailyCreative.class);
|
|
|
creative.setAccountId(token.getAccountId());
|
|
|
// 取得MD5
|
|
|
- String signature = creativeService.getCodeByCreativeId(creative.getCreativeId());
|
|
|
+ /* String signature = creativeService.getCodeByCreativeId(creative.getCreativeId());
|
|
|
if (!Check.isNull(signature)) {
|
|
|
creative.setSignature(signature);
|
|
|
- }
|
|
|
+ }*/
|
|
|
dailyCreativeService.saveOrUpdate(creative);
|
|
|
}
|
|
|
getAdvertiserCreativeReportDailyByPage(token, startDate, endDate, campaignIds, creativeIds, page + 1);
|
|
@@ -1155,7 +1155,6 @@ public class KuaishouInterfaceServiceImpl implements IKuaishouInterfaceService {
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
/**
|
|
|
* 获取 单条 广告计划数据
|
|
|
*
|
|
@@ -1222,7 +1221,7 @@ public class KuaishouInterfaceServiceImpl implements IKuaishouInterfaceService {
|
|
|
}
|
|
|
|
|
|
public JSONArray getGroupList(CtopOauthToken token, Long campaignId, Date startDate,
|
|
|
- Date endDate,int time_filter_type){
|
|
|
+ Date endDate, int time_filter_type) {
|
|
|
String url = PropertiesUtils.getConfig("kuaishou_api_url") + KuaishouInterfaceConstant.GROUP_LIST;
|
|
|
JSONObject param = new JSONObject();
|
|
|
param.put("advertiser_id", token.getAccountId());
|
|
@@ -1231,7 +1230,7 @@ public class KuaishouInterfaceServiceImpl implements IKuaishouInterfaceService {
|
|
|
param.put("end_date", DateUtils.formatDate(endDate));
|
|
|
}
|
|
|
|
|
|
- param.put("campaign_id",campaignId);
|
|
|
+ param.put("campaign_id", campaignId);
|
|
|
|
|
|
Map<String, String> headers = new HashMap<>();
|
|
|
headers.put("Access-Token", token.getAccessToken());
|
|
@@ -1257,7 +1256,6 @@ public class KuaishouInterfaceServiceImpl implements IKuaishouInterfaceService {
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
@Override
|
|
|
public void getGroupList(CtopOauthToken token, Date startDate, Date endDate) {
|
|
|
getGroupListByPage(token, startDate, endDate, 1);
|
|
@@ -1418,8 +1416,7 @@ public class KuaishouInterfaceServiceImpl implements IKuaishouInterfaceService {
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
- public JSONArray getCreativeList(CtopOauthToken token, Long unitId, Date startDate, Date endDate,int timeFilterType){
|
|
|
+ public JSONArray getCreativeList(CtopOauthToken token, Long unitId, Date startDate, Date endDate, int timeFilterType) {
|
|
|
Long advertiserId = token.getAccountId();
|
|
|
String accessToken = token.getAccessToken();
|
|
|
|
|
@@ -1434,8 +1431,8 @@ public class KuaishouInterfaceServiceImpl implements IKuaishouInterfaceService {
|
|
|
param.put("end_date", DateUtils.formatDate(endDate));
|
|
|
}
|
|
|
|
|
|
- param.put("unit_id",unitId);
|
|
|
- param.put("time_filter_type",timeFilterType);
|
|
|
+ param.put("unit_id", unitId);
|
|
|
+ param.put("time_filter_type", timeFilterType);
|
|
|
|
|
|
String result = HttpUtils.kuaiShouhttpPostRequest(url, param.toJSONString(), headers);
|
|
|
JSONObject resultJson = JSONObject.parseObject(result);
|
|
@@ -1457,7 +1454,6 @@ public class KuaishouInterfaceServiceImpl implements IKuaishouInterfaceService {
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
@Override
|
|
|
public void getCreativeList(CtopOauthToken token, Date startDate, Date endDate) {
|
|
|
getCreativeListByPage(token.getAccessToken(), token.getAccountId(), startDate, endDate, 1);
|