1、修复获取钱包问题
This commit is contained in:
parent
aa52e311be
commit
8b1977d42f
@ -37,7 +37,7 @@ func (l *UserInfoLogic) UserInfo(in *user.UserInfoReq) (*user.UserInfoResp, erro
|
|||||||
if findEntErr != nil && !errors.Is(findEntErr, sql.ErrNoRows) {
|
if findEntErr != nil && !errors.Is(findEntErr, sql.ErrNoRows) {
|
||||||
return nil, errors.New("failed to query enterprise auth info")
|
return nil, errors.New("failed to query enterprise auth info")
|
||||||
}
|
}
|
||||||
wallet, findWalletErr := l.svcCtx.WalletsModel.FindOne(l.ctx, in.UserId)
|
wallet, findWalletErr := l.svcCtx.WalletsModel.FindOneByUserId(l.ctx, in.UserId)
|
||||||
if findWalletErr != nil {
|
if findWalletErr != nil {
|
||||||
return nil, findWalletErr
|
return nil, findWalletErr
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user