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