diff --git a/epmet-auth/src/main/java/com/epmet/service/impl/ThirdLoginServiceImpl.java b/epmet-auth/src/main/java/com/epmet/service/impl/ThirdLoginServiceImpl.java index 7b22870b05..d1cc70552e 100644 --- a/epmet-auth/src/main/java/com/epmet/service/impl/ThirdLoginServiceImpl.java +++ b/epmet-auth/src/main/java/com/epmet/service/impl/ThirdLoginServiceImpl.java @@ -65,15 +65,12 @@ public class ThirdLoginServiceImpl implements ThirdLoginService { **/ @Override public UserTokenResultDTO resiLogin(LoginFormDTO formDTO) { - long start = System.currentTimeMillis(); //1.调用epmet_third服务,校验appId是否有效以及是否授权,校验通过的调用微信API获取用户基本信息 WxLoginFormDTO resiLoginFormDTO = new WxLoginFormDTO(); resiLoginFormDTO.setAppId(formDTO.getAppId()); resiLoginFormDTO.setWxCode(formDTO.getWxCode()); UserWechatDTO userWechatDTO = this.getUserWeChat(resiLoginFormDTO); - logger.error("resiLogin getUserWeChat cost time:{}",System.currentTimeMillis()-start); - start = System.currentTimeMillis(); //2.调用epmet-user服务,新增用户信息(先判断用户是否存在,不存在则新增存在则更新) WxUserFormDTO wxUserFormDTO = new WxUserFormDTO(); wxUserFormDTO.setWechatDTO(userWechatDTO); @@ -82,8 +79,6 @@ public class ThirdLoginServiceImpl implements ThirdLoginService { if (!userResult.success()) { throw new RenException(userResult.getCode()); } - logger.error("resiLogin saveWxUser cost time:{}",System.currentTimeMillis()-start); - start = System.currentTimeMillis(); UserDTO userDTO = userResult.getData(); //3.生成业务token @@ -96,7 +91,7 @@ public class ThirdLoginServiceImpl implements ThirdLoginService { //5.接口返参 UserTokenResultDTO userTokenResultDTO = new UserTokenResultDTO(); userTokenResultDTO.setToken(token); - logger.error("resiLogin generateToken cost time:{}",System.currentTimeMillis()-start); + return userTokenResultDTO; }