|
@@ -17,9 +17,9 @@ func GetUserCoinAmount(session *xorm.Session, masterId string, coinId, uid int) |
|
|
if err != nil { |
|
|
if err != nil { |
|
|
if err.Error() == "redigo: nil returned" { |
|
|
if err.Error() == "redigo: nil returned" { |
|
|
userVirtualAmount, err := db.GetUserVirtualWalletWithSession(session, uid, coinId) |
|
|
userVirtualAmount, err := db.GetUserVirtualWalletWithSession(session, uid, coinId) |
|
|
//if err != nil { |
|
|
|
|
|
// return amount, err |
|
|
|
|
|
//} |
|
|
|
|
|
|
|
|
if err != nil { |
|
|
|
|
|
return amount, err |
|
|
|
|
|
} |
|
|
if userVirtualAmount == nil { |
|
|
if userVirtualAmount == nil { |
|
|
amount = "0" |
|
|
amount = "0" |
|
|
} else { |
|
|
} else { |
|
|