|
@@ -206,7 +206,7 @@ public class AgentServiceImpl extends ServiceImpl<AgentMapper, Agent> implements
|
|
|
// 1. 策略一 : 根据 ip + ua 精准匹配用户
|
|
|
userVisitLogList = userVisitLogService.list(new LambdaQueryWrapper<UserVisitLog>()
|
|
|
.eq(UserVisitLog::getIp, userData.getIp())
|
|
|
- .eq(UserVisitLog::getUa, userData)
|
|
|
+ .eq(UserVisitLog::getUa, userData.getUa())
|
|
|
.le(UserVisitLog::getCreateTime, regTime));
|
|
|
// 判断通过策略一是否拿到数据, 筛选出访问时间与注册时间最接近的
|
|
|
if (CollectionUtils.isNotEmpty(userVisitLogList)) {
|
|
@@ -303,6 +303,8 @@ public class AgentServiceImpl extends ServiceImpl<AgentMapper, Agent> implements
|
|
|
UserApplet userApplet = userAppletService.getById(Integer.valueOf(paramMap.get(callState)));
|
|
|
if (userApplet != null && Strings.isNotBlank(userApplet.getChannel())) {
|
|
|
paramMap.putAll(this.channelToMap(userApplet.getChannel()));
|
|
|
+ paramMap.put("appId", userApplet.getAppId());
|
|
|
+ paramMap.put("openId", userApplet.getOpenId());
|
|
|
}
|
|
|
return paramMap;
|
|
|
}
|