Commit ad05b35b authored by 唐峰's avatar 唐峰

更新用户appid 入参为空的情况

parent e70f0f54
...@@ -104,6 +104,7 @@ public class AppletServiceImpl implements IAppletService { ...@@ -104,6 +104,7 @@ public class AppletServiceImpl implements IAppletService {
WechatUserInfo wechatUserInfo; WechatUserInfo wechatUserInfo;
if (StringUtils.isEmpty(appId)) { if (StringUtils.isEmpty(appId)) {
wechatUserInfo = iWeChatUserRepository.findByOpenIdAndAppNameAndTenantId(openId, appName, tenantId); wechatUserInfo = iWeChatUserRepository.findByOpenIdAndAppNameAndTenantId(openId, appName, tenantId);
appId = wechatUserInfo.getAppId();
} else { } else {
wechatUserInfo = iWeChatUserRepository.findByOpenIdAndAppIdAndTenantId(openId, appId, tenantId); wechatUserInfo = iWeChatUserRepository.findByOpenIdAndAppIdAndTenantId(openId, appId, tenantId);
} }
......
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