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("获取用户虚拟币钱包失败") } diff --git a/svc/svc_block_star_chain_settlement.go b/svc/svc_block_star_chain_settlement.go index 2e4b06c..d57b43d 100644 --- a/svc/svc_block_star_chain_settlement.go +++ b/svc/svc_block_star_chain_settlement.go @@ -17,9 +17,9 @@ func GetUserCoinAmount(session *xorm.Session, masterId string, coinId, uid int) if err != nil { if err.Error() == "redigo: nil returned" { userVirtualAmount, err := db.GetUserVirtualWalletWithSession(session, uid, coinId) - if err != nil { - return amount, err - } + //if err != nil { + // return amount, err + //} if userVirtualAmount == nil { amount = "0" } else {