提交 7d6d0317 编写于 作者: Chongwen.jiang's avatar Chongwen.jiang

Merge branch 'dev-login0218' of...

Merge branch 'dev-login0218' of 192.168.110.53:com.pica.cloud.account/pica-cloud-account into dev-login0218

# Conflicts:
#	server/src/main/java/com/pica/cloud/account/account/server/entity/LoginResult.java
流水线 #22086 已失败 于阶段
in 0 second
...@@ -27,18 +27,9 @@ public class LoginResult { ...@@ -27,18 +27,9 @@ public class LoginResult {
private String mobile; private String mobile;
@ApiModelProperty("用户id,已经加密处理") @ApiModelProperty("用户id,已经加密处理")
private String doctorId; private String doctorId;
private Integer logLoginId;
@ApiModelProperty("是否新用户 0:不是新用户,1:新用户") @ApiModelProperty("是否新用户 0:不是新用户,1:新用户")
private int isNewUser; private int isNewUser;
public Integer getLogLoginId() {
return logLoginId;
}
public void setLogLoginId(Integer logLoginId) {
this.logLoginId = logLoginId;
}
public String getToken() { public String getToken() {
return token; return token;
......
...@@ -280,7 +280,6 @@ public class LoginServiceImpl implements LoginService { ...@@ -280,7 +280,6 @@ public class LoginServiceImpl implements LoginService {
entity.setQueryMobileEntity(queryMobileEntity); entity.setQueryMobileEntity(queryMobileEntity);
} }
picaLogUtils.info(entity); picaLogUtils.info(entity);
result.setLogLoginId(entity.getId());
return result; return result;
} }
...@@ -502,7 +501,7 @@ public class LoginServiceImpl implements LoginService { ...@@ -502,7 +501,7 @@ public class LoginServiceImpl implements LoginService {
LoginResult result; LoginResult result;
if (accountInfoEntity == null) { if (accountInfoEntity == null) {
//说明是注册功能 //说明是注册功能
result = registerService.register(baseRequest); result = registerService.register(baseRequest,queryMobileEntity);
} else { } else {
//登录功能 //登录功能
result = processLogin(baseRequest, accountInfoEntity.getId(), AccountTypeEnum.LOGIN_CODE.getCode(),queryMobileEntity); result = processLogin(baseRequest, accountInfoEntity.getId(), AccountTypeEnum.LOGIN_CODE.getCode(),queryMobileEntity);
......
...@@ -163,13 +163,13 @@ public class RegisterServiceImpl implements RegisterService { ...@@ -163,13 +163,13 @@ public class RegisterServiceImpl implements RegisterService {
entity.setQueryMobileEntity(queryMobileEntity); entity.setQueryMobileEntity(queryMobileEntity);
} }
picaLogUtils.info(entity); picaLogUtils.info(entity);
result.setLogLoginId(entity.getId());
processAgreement(userId); processAgreement(userId);
processRoleMap(userId); processRoleMap(userId);
redisClient.del(REPEAT_REGISTER_PREFIX + mobile); redisClient.del(REPEAT_REGISTER_PREFIX + mobile);
return result; return result;
} catch (Exception e) { } catch (Exception e) {
//向上抛出异常,让异常处理框架捕获到 //向上抛出异常,让异常处理框架捕获到
logger.error(e.getMessage(),e);
throw new AccountException(AccountExceptionEnum.PICA_REGISTER_FAIL); throw new AccountException(AccountExceptionEnum.PICA_REGISTER_FAIL);
} finally { } finally {
//如果在注册过程中抛出异常,就删除redis中的注册标记 //如果在注册过程中抛出异常,就删除redis中的注册标记
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册