作者 唐旭辉

添加序号

... ... @@ -847,7 +847,7 @@ func (service OrderInfoService) PageListOrderBonus(listOrderQuery query.ListOrde
hasBonusPercent = true
}
}
listIndex := listOrderQuery.Offset + 1 + i
listIndex := listOrderQuery.Offset + (1 + i)
listItem := map[string]interface{}{
"index": listIndex,
"updateTime": orders[i].UpdateTime.Local().Format("2006-01-02 15:04:05"),
... ...
... ... @@ -275,8 +275,10 @@ func (c *PartnerInfoController) ListPartnerInfo() {
return
}
resp := []map[string]interface{}{}
indexBegin := query.Offset
for i := range partners {
m := map[string]interface{}{
"index": indexBegin + (i + 1),
"id": partners[i].Partner.Id,
"account": partners[i].Partner.Account,
"partnerName": partners[i].Partner.PartnerName,
... ...