|
@@ -7,7 +7,7 @@ import ( |
|
|
"strings" |
|
|
"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) |
|
|
send, _ := Send(keyArr, "pdd.ddk.all.order.list.increment.get", param) |
|
|
var res cps_pdd.CpsPddOrder |
|
|
var res cps_pdd.CpsPddOrder |
|
|
json.Unmarshal([]byte(send), &res) |
|
|
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["create_time"] = zhios_third_party_utils.IntToStr(v.OrderCreateTime) |
|
|
tmp["payment_time"] = zhios_third_party_utils.IntToStr(v.OrderPayTime) |
|
|
tmp["payment_time"] = zhios_third_party_utils.IntToStr(v.OrderPayTime) |
|
|
tmp["update_time"] = zhios_third_party_utils.IntToStr(v.OrderModifyAt) |
|
|
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["status_str"] = v.OrderStatusDesc |
|
|
tmp["pdd_pid"] = v.PId |
|
|
tmp["pdd_pid"] = v.PId |
|
|
tmp["fail_status"] = v.FailReason |
|
|
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) |
|
|
data = append(data, tmp) |
|
|
} |
|
|
} |
|
|
return data |
|
|
|
|
|
|
|
|
return data, res.OrderListGetResponse.TotalCount |
|
|
} |
|
|
} |