Browse Source

拼多多联盟

master
huangjiajun 7 months ago
parent
commit
df362f8de1
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      pdd_union/order.go

+ 4
- 2
pdd_union/order.go View File

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

Loading…
Cancel
Save