Commit 0f9d2196 authored by szh's avatar szh

update minetime

parent 7d8a0fba
......@@ -42,7 +42,7 @@ func GetMinerTxsTotal(addr string) (int, error) {
// GetAddrs gets a list of articles based on paging constraints
func GetMinerTxs(pageNum int32, pageSize int32, maps interface{}) ([]*RaspMinerTxs, error) {
var txs []*RaspMinerTxs
err := db.Where(maps).Offset(pageNum).Limit(pageSize).Find(&txs).Error
err := db.Where(maps).Offset(pageNum-1).Limit(pageSize).Find(&txs).Error
if err != nil && err != gorm.ErrRecordNotFound {
return nil, err
}
......
......@@ -177,6 +177,7 @@ func (p *Pai) GetTicketInfo(req *ReqTicketInfo) (*MinedInfo,error) {
t.Height = v.Height
t.Amount = v.Amount
t.BlockTime = v.Time
t.Hash = v.Hash
txsList = append(txsList,&t)
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment