Browse Source

add reverse:for v2.1.0 更新

tags/v2.1.1
huangjiajun 2 years ago
parent
commit
751b1b6942
2 changed files with 4 additions and 3 deletions
  1. +1
    -0
      db/db_user_virtual_amount.go
  2. +3
    -3
      svc/svc_block_star_chain_settlement.go

+ 1
- 0
db/db_user_virtual_amount.go View File

@@ -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("获取用户虚拟币钱包失败")
}


+ 3
- 3
svc/svc_block_star_chain_settlement.go View File

@@ -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 {


Loading…
Cancel
Save