diff --git a/code/smart-community/epmet-auth/src/main/java/com/epmet/constant/SsoConstant.java b/code/smart-community/epmet-auth/src/main/java/com/epmet/constant/SsoConstant.java index 4bc4c597..14932ad0 100644 --- a/code/smart-community/epmet-auth/src/main/java/com/epmet/constant/SsoConstant.java +++ b/code/smart-community/epmet-auth/src/main/java/com/epmet/constant/SsoConstant.java @@ -19,6 +19,11 @@ public interface SsoConstant { String CUSTOMER_ID_IS_NULL = "customerId为空,缓存放置token失败......"; + /** + * 日照CustomerId + */ + String RIZHAO_CUSTOMER_ID = "1659960095703261186"; + /** * 日照 Ticket 校验接口地址,SSO调用 */ diff --git a/code/smart-community/epmet-auth/src/main/java/com/epmet/service/impl/ThirdLoginServiceImpl.java b/code/smart-community/epmet-auth/src/main/java/com/epmet/service/impl/ThirdLoginServiceImpl.java index 3369d4e0..deb857ed 100644 --- a/code/smart-community/epmet-auth/src/main/java/com/epmet/service/impl/ThirdLoginServiceImpl.java +++ b/code/smart-community/epmet-auth/src/main/java/com/epmet/service/impl/ThirdLoginServiceImpl.java @@ -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; }