diff --git a/server/marketserver/api/v1/user/user.go b/server/marketserver/api/v1/user/user.go index ba3dda4a..0d07ef8e 100644 --- a/server/marketserver/api/v1/user/user.go +++ b/server/marketserver/api/v1/user/user.go @@ -98,7 +98,7 @@ func (this *UserApi) Info(c *gin.Context) { } { var dbErr error - sql := "SELECT SUM(diamond) FROM t_recharge WHERE passport = ?" + sql := "SELECT SUM(diamond) FROM t_recharge WHERE passport = ? AND status = 0" params := []string{ accountAddress, }