|
@@ -207,8 +207,9 @@ public class CallbackController {
|
|
userAllocation.setWarningAmount(warningAmount);
|
|
userAllocation.setWarningAmount(warningAmount);
|
|
userAllocation.setCreateTime(new Date());
|
|
userAllocation.setCreateTime(new Date());
|
|
userAllocation.setUpdateTime(new Date());
|
|
userAllocation.setUpdateTime(new Date());
|
|
- //同步物料,0关闭,1开启
|
|
|
|
|
|
+ //自动投放,0关闭,1开启
|
|
userAllocation.setAutoDelivery(json.getInteger("autoDelivery"));
|
|
userAllocation.setAutoDelivery(json.getInteger("autoDelivery"));
|
|
|
|
+ userAllocation.setMaterialType(json.getString("materialType"));
|
|
allocationMapper.deleteById(userAllocation.getId());
|
|
allocationMapper.deleteById(userAllocation.getId());
|
|
Map<String, Object> deleteUserMap = new HashMap<>();
|
|
Map<String, Object> deleteUserMap = new HashMap<>();
|
|
deleteUserMap.put("advertiser_id", advertiserId);
|
|
deleteUserMap.put("advertiser_id", advertiserId);
|
|
@@ -219,7 +220,8 @@ public class CallbackController {
|
|
log.info("同步分配用户表完成,task_id:{},accountId:{}", state, accountId);
|
|
log.info("同步分配用户表完成,task_id:{},accountId:{}", state, accountId);
|
|
}
|
|
}
|
|
//物料类型,0-不同步,1应用包,(2人群包,3定向包)
|
|
//物料类型,0-不同步,1应用包,(2人群包,3定向包)
|
|
- Integer materialType = json.getInteger("materialType");
|
|
|
|
|
|
+ JSONArray materialTypeArr = json.getJSONArray("materialType");
|
|
|
|
+ Integer materialType = materialTypeArr.getInteger(0);
|
|
//账号绑定
|
|
//账号绑定
|
|
bindAccountAuthService.addBindAccount(accountId, KuaishouInterfaceConstant.LOGIN_TYPE_KUAISHOU, advertiserId);
|
|
bindAccountAuthService.addBindAccount(accountId, KuaishouInterfaceConstant.LOGIN_TYPE_KUAISHOU, advertiserId);
|
|
Thread t = new Thread() {
|
|
Thread t = new Thread() {
|