Pārlūkot izejas kodu

拼多多联盟

master
huangjiajun pirms 7 mēnešiem
vecāks
revīzija
df362f8de1
1 mainītis faili ar 4 papildinājumiem un 2 dzēšanām
  1. +4
    -2
      pdd_union/order.go

+ 4
- 2
pdd_union/order.go Parādīt failu

@@ -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
}

Notiek ielāde…
Atcelt
Saglabāt