|
@@ -73,6 +73,9 @@ public class LoginServiceImpl implements RegisterLoginService {
|
|
|
@Autowired
|
|
|
private WordCheckService wordCheckService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private ChannelService channelService;
|
|
|
+
|
|
|
|
|
|
* QQ开发者应用id
|
|
|
*/
|
|
@@ -125,6 +128,7 @@ public class LoginServiceImpl implements RegisterLoginService {
|
|
|
}
|
|
|
|
|
|
user = User.builder()
|
|
|
+ .agentId(channelService.getByChannelSign(userData.getChannel()))
|
|
|
.gameId(gameId)
|
|
|
.username(username)
|
|
|
.password(RegisterUtil.cmfPassword(password))
|
|
@@ -133,6 +137,10 @@ public class LoginServiceImpl implements RegisterLoginService {
|
|
|
.authentication(0)
|
|
|
.createTime(LocalDateTime.now())
|
|
|
.updateTime(LocalDateTime.now())
|
|
|
+ .deviceSystem(userData.getDeviceSystem())
|
|
|
+ .mac(userData.getMac())
|
|
|
+ .imei(userData.getImei())
|
|
|
+ .androidId(userData.getAndroidId())
|
|
|
.build();
|
|
|
userService.save(user);
|
|
|
}
|
|
@@ -177,6 +185,7 @@ public class LoginServiceImpl implements RegisterLoginService {
|
|
|
|
|
|
if (user == null) {
|
|
|
user = User.builder()
|
|
|
+ .agentId(channelService.getByChannelSign(userData.getChannel()))
|
|
|
.gameId(gameId)
|
|
|
.mobile(mobile)
|
|
|
.deviceType(deviceType)
|
|
@@ -184,6 +193,10 @@ public class LoginServiceImpl implements RegisterLoginService {
|
|
|
.authentication(0)
|
|
|
.createTime(LocalDateTime.now())
|
|
|
.updateTime(LocalDateTime.now())
|
|
|
+ .deviceSystem(userData.getDeviceSystem())
|
|
|
+ .mac(userData.getMac())
|
|
|
+ .imei(userData.getImei())
|
|
|
+ .androidId(userData.getAndroidId())
|
|
|
.build();
|
|
|
userService.save(user);
|
|
|
} else {
|