Commit 434240a7 authored by 李健华's avatar 李健华

Merge branch 'hotfix/userRegisterFrom-20220418' into 'master'

修改因用户登陆产的修改用户注册渠道问题

See merge request !63
parents 6b8060c2 c3c0f2ac
...@@ -16,6 +16,7 @@ import cn.quantgroup.xyqb.util.TenantUtil; ...@@ -16,6 +16,7 @@ import cn.quantgroup.xyqb.util.TenantUtil;
import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSON;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Value; import org.springframework.beans.factory.annotation.Value;
import org.springframework.cache.annotation.CacheEvict; import org.springframework.cache.annotation.CacheEvict;
import org.springframework.cache.annotation.Caching; import org.springframework.cache.annotation.Caching;
...@@ -152,8 +153,10 @@ public class SessionServiceImpl implements ISessionService { ...@@ -152,8 +153,10 @@ public class SessionServiceImpl implements ISessionService {
* 部分免密渠道登录统计,用户中心不需识别,由统计平台来过滤 * 部分免密渠道登录统计,用户中心不需识别,由统计平台来过滤
* 贷款导航(84660);壹账通H5(159384) * 贷款导航(84660);壹账通H5(159384)
*/ */
user.setRegisteredFrom(properties.getCreatedFrom()); User userRereset = new User();
UserStatistics statistics = new UserStatistics(user, null, properties.getAction(), properties.getChannelId()); BeanUtils.copyProperties(user, userRereset);
userRereset.setRegisteredFrom(properties.getCreatedFrom());
UserStatistics statistics = new UserStatistics(userRereset, null, properties.getAction(), properties.getChannelId());
// 推送老的登陆统计信息 // 推送老的登陆统计信息
MqUtils.sendLoanVest(statistics); MqUtils.sendLoanVest(statistics);
return sessionStruct; return sessionStruct;
......
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