|
@@ -162,11 +162,13 @@ public class CallbackController {
|
|
|
BigDecimal warningProportion = json.getBigDecimal("WarningProportion");
|
|
|
BigDecimal warningAmount = json.getBigDecimal("WarningAmount");
|
|
|
String systemType = json.getString("systemType");
|
|
|
+
|
|
|
+ /* TODO
|
|
|
Integer autoDelivery = json.getInteger("autoDelivery");
|
|
|
String materialTypeStr = json.getString("materialType");
|
|
|
//物料类型,0-不同步,1应用包,(2人群包,3定向包)
|
|
|
JSONArray materialTypeArr = json.getJSONArray("materialType");
|
|
|
-
|
|
|
+*/
|
|
|
CtopOauthToken topOauthToken = new CtopOauthToken();
|
|
|
topOauthToken.setId(String.valueOf(accountId));
|
|
|
topOauthToken.setAppId(json.getLong("appId"));
|
|
@@ -212,8 +214,9 @@ public class CallbackController {
|
|
|
userAllocation.setCreateTime(new Date());
|
|
|
userAllocation.setUpdateTime(new Date());
|
|
|
//自动投放,0关闭,1开启
|
|
|
+ /* TODO
|
|
|
userAllocation.setAutoDelivery(autoDelivery);
|
|
|
- userAllocation.setMaterialType(materialTypeStr);
|
|
|
+ userAllocation.setMaterialType(materialTypeStr);*/
|
|
|
allocationMapper.deleteById(userAllocation.getId());
|
|
|
Map<String, Object> deleteUserMap = new HashMap<>();
|
|
|
deleteUserMap.put("advertiser_id", advertiserId);
|
|
@@ -224,7 +227,7 @@ public class CallbackController {
|
|
|
if (i > 0) {
|
|
|
log.info("同步分配用户表完成,task_id:{},accountId:{}", state, accountId);
|
|
|
}
|
|
|
- Integer materialType = materialTypeArr.getInteger(0);
|
|
|
+ /* TODO Integer materialType = materialTypeArr.getInteger(0);*/
|
|
|
//账号绑定
|
|
|
bindAccountAuthService.addBindAccount(accountId, KuaishouInterfaceConstant.LOGIN_TYPE_KUAISHOU, advertiserId);
|
|
|
Thread t = new Thread() {
|
|
@@ -232,9 +235,10 @@ public class CallbackController {
|
|
|
public void run() {
|
|
|
try {
|
|
|
kuaishouInterfaceService.loadKuaishouDataSingle(topOauthToken);
|
|
|
+ /* TODO
|
|
|
if (!Check.isNull(materialType) && materialType != 0) {
|
|
|
synchronMaterials(materialType, accountId, projectId);
|
|
|
- }
|
|
|
+ }*/
|
|
|
} catch (ParseException e) {
|
|
|
e.printStackTrace();
|
|
|
}
|