|
|
@@ -23,20 +23,25 @@ func GuideOrderList(c *gin.Context, args map[string]string) ([]map[string]string |
|
|
|
settleStatus = "已结算" |
|
|
|
settleTime = time.Unix(int64(v.SettleTime), 0).Format("2006-01-02 15:04:05") |
|
|
|
} |
|
|
|
platformSettleTime := "-" |
|
|
|
if v.SettleTime > 0 { |
|
|
|
platformSettleTime = time.Unix(int64(v.PlatformSettleTime), 0).Format("2006-01-02 15:04:05") |
|
|
|
} |
|
|
|
var tmp = map[string]string{ |
|
|
|
"oid": v.PvdOid, |
|
|
|
"uid": utils.IntToStr(v.StationUid), |
|
|
|
"title": v.Title, |
|
|
|
"platform_fee": "0", |
|
|
|
"commission_bili": "", |
|
|
|
"source": platformMap[v.Pvd], |
|
|
|
"amount": v.Payment, |
|
|
|
"commission": v.Commission, |
|
|
|
"real_commission": v.RealCommission, |
|
|
|
"status": v.Status, |
|
|
|
"settle_status": settleStatus, |
|
|
|
"create_time": time.Unix(int64(v.CreateTime), 0).Format("2006-01-02 15:04:05"), |
|
|
|
"settle_time": settleTime, |
|
|
|
"oid": v.PvdOid, |
|
|
|
"uid": utils.IntToStr(v.StationUid), |
|
|
|
"title": v.Title, |
|
|
|
"platform_fee": "0", |
|
|
|
"commission_bili": "", |
|
|
|
"source": platformMap[v.Pvd], |
|
|
|
"amount": v.Payment, |
|
|
|
"commission": v.Commission, |
|
|
|
"platform_settle_time": platformSettleTime, |
|
|
|
"real_commission": v.RealCommission, |
|
|
|
"status": v.Status, |
|
|
|
"settle_status": settleStatus, |
|
|
|
"create_time": time.Unix(int64(v.CreateTime), 0).Format("2006-01-02 15:04:05"), |
|
|
|
"settle_time": settleTime, |
|
|
|
} |
|
|
|
data = append(data, tmp) |
|
|
|
} |
|
|
|