Commit 708a5ee9 authored by 唐峰's avatar 唐峰

租户查询

parent 9d66d449
......@@ -151,6 +151,8 @@ public class WechatServiceImpl implements IWechatService {
if (Objects.isNull(userInfo) || Objects.isNull(userInfo.getOpenId())) {
return null;
}
//appName openId 唯一索引
long count = weChatUserRepository.countByOpenIdAndAppNameAndAppIdAndTenantId(userInfo.getOpenId(), "xyqb",userInfo.getAppId(),userInfo.getTenantId());
if (count > 0) {
//注意,这里会抛异常(5000/total),WeChatController中已捕获处理
......@@ -173,6 +175,7 @@ public class WechatServiceImpl implements IWechatService {
// String city = EmojiUtil.filterUnicode4(userInfo.getCity());
// userInfo.setCity(city);
userInfo = userInfo.convertEmoji();
WechatUserInfo wechatUserInfo = weChatUserRepository.save(userInfo);
WechatEventMsg wechatEventMsg = WechatEventMsg.builder()
.userId(wechatUserInfo.getUserId())
......
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