diff --git a/server/marketserver/api/v1/activity/stacking.go b/server/marketserver/api/v1/activity/stacking.go index 386f906c..bdff93d7 100644 --- a/server/marketserver/api/v1/activity/stacking.go +++ b/server/marketserver/api/v1/activity/stacking.go @@ -155,9 +155,9 @@ func (sa *StackingApi) DiamondRecordQuery(c *gin.Context) { return } - obj := new(Record) - for ds.Next() { + obj := new(Record) + obj.Date = q5.SafeToInt32(ds.GetByName("createtime")) obj.Amount = ds.GetByName("amount") obj.Type = 1 @@ -181,9 +181,9 @@ func (sa *StackingApi) DiamondRecordQuery(c *gin.Context) { return } - obj := new(Record) - for ds.Next() { + obj := new(Record) + obj.Date = q5.SafeToInt32(ds.GetByName("pay_time")) obj.Amount = ds.GetByName("diamond") obj.Type = 0