1、修复获取钱包问题

This commit is contained in:
liangzai 2024-10-22 11:24:01 +08:00
parent aa52e311be
commit 8b1977d42f

View File

@ -37,7 +37,7 @@ func (l *UserInfoLogic) UserInfo(in *user.UserInfoReq) (*user.UserInfoResp, erro
if findEntErr != nil && !errors.Is(findEntErr, sql.ErrNoRows) {
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 {
return nil, findWalletErr
}