|
|
@ -47,8 +47,13 @@ public class PublicUserLoginServiceImpl implements PublicUserLoginService { |
|
|
|
e.printStackTrace(); |
|
|
|
throw new RenException("解析微信用户信息失败"+e.getMessage()); |
|
|
|
} |
|
|
|
if (null == wxMpUser || StringUtils.isBlank(wxMpUser.getUnionId())) { |
|
|
|
throw new RenException("解析微信用户信息失败"); |
|
|
|
if (null == wxMpUser ) { |
|
|
|
logger.error("wxMpUser is null"); |
|
|
|
throw new RenException("解析微信用户信息失败 wxMpUser is null"); |
|
|
|
} |
|
|
|
if(StringUtils.isBlank(wxMpUser.getUnionId())){ |
|
|
|
logger.error("wxMpUser.getUnionId() is null"); |
|
|
|
// throw new RenException("解析微信用户信息失败");
|
|
|
|
} |
|
|
|
return wxMpUser; |
|
|
|
} |
|
|
|