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);