Commit 0b9845b4 authored by 唐峰's avatar 唐峰

微信登录,appid无入参,默认从库中查询获取

parent 9a9963ab
......@@ -104,7 +104,6 @@ public class AppletServiceImpl implements IAppletService {
WechatUserInfo wechatUserInfo;
if (StringUtils.isEmpty(appId)) {
wechatUserInfo = iWeChatUserRepository.findByOpenIdAndAppNameAndTenantId(openId, appName, tenantId);
appId = wechatUserInfo.getAppId();
} else {
wechatUserInfo = iWeChatUserRepository.findByOpenIdAndAppIdAndTenantId(openId, appId, tenantId);
}
......@@ -116,6 +115,7 @@ public class AppletServiceImpl implements IAppletService {
log.warn("用户未绑定到xyqb,appName:{} ,openId:{}", appName, openId);
throw new AppletException("未找到此用户绑定信息", "0401");
}
appId = wechatUserInfo.getAppId();
User user = userService.findById(wechatUserInfo.getUserId(), wechatUserInfo.getTenantId());
if (null == user) {
log.warn("未找到此用户,appName:{} ,openId:{}", appName, openId);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment