From df362f8de1da2bd4230a7d0894cb57e44c62263a Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Tue, 14 May 2024 20:56:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8B=BC=E5=A4=9A=E5=A4=9A=E8=81=94=E7=9B=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pdd_union/order.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pdd_union/order.go b/pdd_union/order.go index 83822fc..85ff71f 100644 --- a/pdd_union/order.go +++ b/pdd_union/order.go @@ -7,7 +7,7 @@ import ( "strings" ) -func GetOrder(keyArr map[string]string, param map[string]interface{}) []map[string]string { +func GetOrder(keyArr map[string]string, param map[string]interface{}) ([]map[string]string, int) { send, _ := Send(keyArr, "pdd.ddk.all.order.list.increment.get", param) var res cps_pdd.CpsPddOrder json.Unmarshal([]byte(send), &res) @@ -30,6 +30,8 @@ func GetOrder(keyArr map[string]string, param map[string]interface{}) []map[stri tmp["create_time"] = zhios_third_party_utils.IntToStr(v.OrderCreateTime) tmp["payment_time"] = zhios_third_party_utils.IntToStr(v.OrderPayTime) tmp["update_time"] = zhios_third_party_utils.IntToStr(v.OrderModifyAt) + tmp["settle_time"] = zhios_third_party_utils.IntToStr(v.OrderSettleTime) + tmp["order_receive_time"] = zhios_third_party_utils.IntToStr(v.OrderReceiveTime) tmp["status_str"] = v.OrderStatusDesc tmp["pdd_pid"] = v.PId tmp["fail_status"] = v.FailReason @@ -41,5 +43,5 @@ func GetOrder(keyArr map[string]string, param map[string]interface{}) []map[stri } data = append(data, tmp) } - return data + return data, res.OrderListGetResponse.TotalCount }