Commit d03afbac by 徐高华

调试

parent cfd6dd85
...@@ -645,6 +645,7 @@ public class DealSyncOperationApiServiceImpl implements DealSyncOperationApiServ ...@@ -645,6 +645,7 @@ public class DealSyncOperationApiServiceImpl implements DealSyncOperationApiServ
Object cache = RedisUtil.getCache(staffLockKey); Object cache = RedisUtil.getCache(staffLockKey);
if (null != cache) { if (null != cache) {
RedisUtil.unlock(lockKey); RedisUtil.unlock(lockKey);
logger.info("限制此操作,lockKey={}",staffLockKey);
return null; return null;
} }
TabHaobanSyncTask tabHaobanSyncTask = new TabHaobanSyncTask(); TabHaobanSyncTask tabHaobanSyncTask = new TabHaobanSyncTask();
......
...@@ -101,9 +101,8 @@ public class FriendSyncNewOperation implements BaseSyncOperation { ...@@ -101,9 +101,8 @@ public class FriendSyncNewOperation implements BaseSyncOperation {
return; return;
} }
//relationkey //relationkey
logger.info("生成relationKey:{},{},{}",staffId,externalUserDTO.getName(),externalUserDTO.getAddCreateTime());
relationKey = SecureUtil.md5(staffId + "_" + externalUserDTO.getName() + "_" + externalUserDTO.getAddCreateTime()); relationKey = SecureUtil.md5(staffId + "_" + externalUserDTO.getName() + "_" + externalUserDTO.getAddCreateTime());
logger.info("relationKey:{},{}", relationKey, externalUserDTO.getExternalUserId()); logger.info("第三方生成relationKey:{},{},{} 客户={}, 结果={}",staffId,externalUserDTO.getName(),externalUserDTO.getAddCreateTime() , externalUserDTO.getExternalUserId() , relationKey);
// 根据关联键relationkey查看自建应用 是否有数据 // 根据关联键relationkey查看自建应用 是否有数据
TabHaobanPreDealLog selfPre = preDealService.getByRelationKey(taskId, PreDealTypeEnum.self_friend.getVal(), relationKey); TabHaobanPreDealLog selfPre = preDealService.getByRelationKey(taskId, PreDealTypeEnum.self_friend.getVal(), relationKey);
if (null == selfPre) { if (null == selfPre) {
...@@ -133,6 +132,7 @@ public class FriendSyncNewOperation implements BaseSyncOperation { ...@@ -133,6 +132,7 @@ public class FriendSyncNewOperation implements BaseSyncOperation {
dealFlag = tryAgainToMq(dataPre); dealFlag = tryAgainToMq(dataPre);
reason = "接口重试超出限制"; reason = "接口重试超出限制";
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace();
logger.info("同步失败:{},{}", JSONObject.toJSONString(dataPre), e); logger.info("同步失败:{},{}", JSONObject.toJSONString(dataPre), e);
reason = "第三方好友处理异常"; reason = "第三方好友处理异常";
dealFlag = false; dealFlag = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment