瀏覽代碼

修改小程序绑定代码

pull/390/head
wanjing 10 月之前
父節點
當前提交
779138c781
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. +2
    -1
      tuoheng-service/tuoheng-miniprogram/src/main/java/com/tuoheng/miniprogram/service/impl/WxServiceImpl.java

+ 2
- 1
tuoheng-service/tuoheng-miniprogram/src/main/java/com/tuoheng/miniprogram/service/impl/WxServiceImpl.java 查看文件

@@ -122,7 +122,8 @@ public class WxServiceImpl implements IWxService {

// 当前用户已经与其他微信做过绑定,先解绑
UserAuthorize userAuthorizeTmp = userAuthorizeMapper.selectOne(Wrappers.<UserAuthorize>lambdaQuery()
.eq(UserAuthorize::getUserId, userId)
.ne(UserAuthorize::getUserId, userId)
.eq(UserAuthorize::getOpenId, openid)
.eq(UserAuthorize::getMark, MarkEnum.VALID.getCode()));
if (ObjectUtil.isNotEmpty(userAuthorizeTmp)) {
log.info("该用户已做绑定,先进行解绑, userId={},openid={}", userId, openid);

Loading…
取消
儲存