diff --git a/db/db_user_virtual_amount.go b/db/db_user_virtual_amount.go index 05c1893..663214f 100644 --- a/db/db_user_virtual_amount.go +++ b/db/db_user_virtual_amount.go @@ -90,6 +90,7 @@ func GetUserVirtualWalletWithSession(session *xorm.Session, uid, coinId int) (*m if err != nil || one == 0 { return nil, err } + return &UserVirtualWallet, nil } return nil, errors.New("获取用户虚拟币钱包失败") }