|
|
@ -67,8 +67,6 @@ public class LoginServiceImpl implements LoginService { |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private OperAccessOpenFeignClient operAccessOpenFeignClient; |
|
|
|
@Autowired |
|
|
|
private CustomerAppWxServiceUtil customerAppWxServiceUtil; |
|
|
|
|
|
|
|
/** |
|
|
|
* 居民端微信小程序登录 |
|
|
@ -116,7 +114,11 @@ public class LoginServiceImpl implements LoginService { |
|
|
|
WxMaJscode2SessionResult wxMaJscode2SessionResult = null; |
|
|
|
try { |
|
|
|
if (StringUtils.isNotBlank(appId)){ |
|
|
|
wxMaJscode2SessionResult = customerAppWxServiceUtil.getWxMaService(appId).jsCode2SessionInfo(wxCode); |
|
|
|
WxMaService wxMaService = CustomerAppWxServiceUtil.getWxMaService(appId); |
|
|
|
if (wxMaService == null){ |
|
|
|
throw new RenException("解析微信用户信息失败"); |
|
|
|
} |
|
|
|
wxMaJscode2SessionResult = wxMaService.jsCode2SessionInfo(wxCode); |
|
|
|
}else{ |
|
|
|
if (LoginConstant.APP_GOV.equals(app)) { |
|
|
|
wxMaJscode2SessionResult = wxMaServiceUtils.govWxMaService().jsCode2SessionInfo(wxCode); |
|
|
@ -146,7 +148,7 @@ public class LoginServiceImpl implements LoginService { |
|
|
|
ValidatorUtils.validateEntity(formDTO, ResiWxPhoneFormDTO.AddUserInternalGroup.class); |
|
|
|
WxMaService wxMaService = null; |
|
|
|
if (StringUtils.isNotBlank(formDTO.getAppId())){ |
|
|
|
wxMaService = customerAppWxServiceUtil.getWxMaService(formDTO.getAppId()); |
|
|
|
wxMaService = CustomerAppWxServiceUtil.getWxMaService(formDTO.getAppId()); |
|
|
|
}else{ |
|
|
|
wxMaService = wxMaServiceUtils.resiWxMaService(); |
|
|
|
} |
|
|
|