|
@@ -84,6 +84,8 @@ public class CallbackController {
|
|
|
userAllocation.setDepartmentId(departmentId);
|
|
|
userAllocation.setOperationName(realName);
|
|
|
userAllocation.setAccountId(accountId);
|
|
|
+ userAllocation.setCreateTime(new Date());
|
|
|
+ userAllocation.setUpdateTime(new Date());
|
|
|
allocationMapper.deleteById(userAllocation.getId());
|
|
|
Map<String, Object> deleteUserMap = new HashMap<>();
|
|
|
deleteUserMap.put("advertiser_id", advertiser_id);
|
|
@@ -141,6 +143,7 @@ public class CallbackController {
|
|
|
|
|
|
@Autowired
|
|
|
private IByteDanceAdvertiserDataService advertiserDataService;
|
|
|
+
|
|
|
public Map<String, Object> getByteDanceAccessToken(String authCode, String state) {
|
|
|
Map<String, Object> param = new HashMap<String, Object>();
|
|
|
param.put("app_id", PropertiesUtils.getValue("bytedance_config", "bytedance_appid"));
|
|
@@ -195,6 +198,8 @@ public class CallbackController {
|
|
|
userAllocation.setMediaId(mediaId);
|
|
|
userAllocation.setAuthName(advertiserData.getName());
|
|
|
userAllocation.setAdvertiserId(advertiser_id);
|
|
|
+ userAllocation.setCreateTime(new Date());
|
|
|
+ userAllocation.setUpdateTime(new Date());
|
|
|
allocationMapper.deleteById(userAllocation.getId());
|
|
|
Map<String, Object> deleteUserMap = new HashMap<>();
|
|
|
deleteUserMap.put("advertiser_id", advertiser_id);
|