Commit 0cec19bb4649fdb7610d0c8c3cdbf8565703fbb6
1 parent
1fb3de46
feat(*): 优化账号初始化时的xgtoken填充
- 优化账号初始化时的xgtoken填充
Showing
1 changed file
with
2 additions
and
0 deletions
fw-hermes-service/src/main/java/cn/fw/hermes/service/biz/AccountBizService.java
... | ... | @@ -2,6 +2,7 @@ package cn.fw.hermes.service.biz; |
2 | 2 | |
3 | 3 | import cn.fw.common.web.auth.LoginAuthBean; |
4 | 4 | import cn.fw.common.web.auth.PassportAuthBean; |
5 | +import cn.fw.hermes.common.constant.Constant; | |
5 | 6 | import cn.fw.hermes.common.utils.StringUtils; |
6 | 7 | import cn.fw.hermes.common.utils.TemplateHelper; |
7 | 8 | import cn.fw.hermes.common.utils.UUIDUtils; |
... | ... | @@ -155,6 +156,7 @@ public class AccountBizService { |
155 | 156 | hermes.setIdentifier(UUIDUtils.INSTANCE.newStaffIdentifier(userId)); |
156 | 157 | hermes.setUserId(userId); |
157 | 158 | hermes.setNickName(userName); |
159 | + hermes.setXgToken(Constant.INVALID_TOKEN); | |
158 | 160 | hermes.setAccountType(accountTypeEnum); |
159 | 161 | hermes.setState(AccountStateEnum.NORMAL); |
160 | 162 | hermes.setCreateDay(LocalDate.now()); | ... | ... |