|
|
@ -30,6 +30,7 @@ import com.epmet.commons.tools.utils.api.yt.YantaiSSOUser; |
|
|
|
import com.epmet.commons.tools.validator.PhoneValidatorUtils; |
|
|
|
import com.epmet.constant.AuthHttpUrlConstant; |
|
|
|
import com.epmet.constant.SmsTemplateConstant; |
|
|
|
import com.epmet.constant.SsoConstant; |
|
|
|
import com.epmet.dto.*; |
|
|
|
import com.epmet.dto.dingres.DingUserDetailDTO; |
|
|
|
import com.epmet.dto.dingres.V2UserGetuserinfoResDTO; |
|
|
@ -152,6 +153,7 @@ public class ThirdLoginServiceImpl implements ThirdLoginService, ResultDataResol |
|
|
|
wxUser.setApp(APP); |
|
|
|
UserWechatDTO wechatDTO = new UserWechatDTO(); |
|
|
|
wechatDTO.setWxOpenId(openId); |
|
|
|
wechatDTO.setCustomerId(SsoConstant.RIZHAO_CUSTOMER_ID); |
|
|
|
wxUser.setWechatDTO(wechatDTO); |
|
|
|
UserDTO userDTO = epmetUserOpenFeignClient.saveWxUser(wxUser).getData(); |
|
|
|
// 2、封装数据
|
|
|
@ -168,6 +170,7 @@ public class ThirdLoginServiceImpl implements ThirdLoginService, ResultDataResol |
|
|
|
//5.接口返参
|
|
|
|
UserTokenResultDTO userTokenResultDTO = new UserTokenResultDTO(); |
|
|
|
userTokenResultDTO.setToken(token); |
|
|
|
userTokenResultDTO.setCustomerId(userDTO.getCustomerId()); |
|
|
|
return userTokenResultDTO; |
|
|
|
} |
|
|
|
|
|
|
|