From dbb2208bd1dc5840126ccd1882dc439525bfd48d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=89=E6=9D=A5=E6=8A=80=E6=9C=AF?= <1490493387@qq.com> Date: Sun, 10 Oct 2021 01:54:27 +0800 Subject: [PATCH] =?UTF-8?q?fix(WechatAuthenticationProvider.class):?= =?UTF-8?q?=E4=BC=9A=E5=91=98=E6=B3=A8=E5=86=8C=E8=AE=BE=E7=BD=AE=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E5=8F=AF=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../security/extension/wechat/WechatAuthenticationProvider.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/youlai-auth/src/main/java/com/youlai/auth/security/extension/wechat/WechatAuthenticationProvider.java b/youlai-auth/src/main/java/com/youlai/auth/security/extension/wechat/WechatAuthenticationProvider.java index fe91bfd46..6683211f0 100644 --- a/youlai-auth/src/main/java/com/youlai/auth/security/extension/wechat/WechatAuthenticationProvider.java +++ b/youlai-auth/src/main/java/com/youlai/auth/security/extension/wechat/WechatAuthenticationProvider.java @@ -5,6 +5,7 @@ import cn.binarywang.wx.miniapp.bean.WxMaJscode2SessionResult; import cn.binarywang.wx.miniapp.bean.WxMaUserInfo; import cn.hutool.core.bean.BeanUtil; import com.youlai.auth.security.core.userdetails.member.MemberUserDetailsServiceImpl; +import com.youlai.common.constant.GlobalConstants; import com.youlai.common.result.Result; import com.youlai.common.result.ResultCode; import com.youlai.mall.ums.api.MemberFeignClient; @@ -65,6 +66,7 @@ public class WechatAuthenticationProvider implements AuthenticationProvider { UmsMember member = new UmsMember(); BeanUtil.copyProperties(userInfo, member); member.setOpenid(openid); + member.setStatus(GlobalConstants.STATUS_YES); memberFeignClient.add(member); } UserDetails userDetails = ((MemberUserDetailsServiceImpl) userDetailsService).loadUserByOpenId(openid);