|
@@ -140,21 +140,10 @@ function __construct(){
|
|
|
//设置post数据
|
|
|
$post = array();
|
|
|
$post['order_out'] = 1;
|
|
|
-
|
|
|
- $post['sub_trade_order_list'] = [
|
|
|
- [
|
|
|
- "send_type"=>$all,
|
|
|
- "shipment_list"=>[
|
|
|
- "logistics_no"=>$whlabel,
|
|
|
- "service_name"=> $ex,
|
|
|
- ],
|
|
|
- 'sub_trade_order_index'=>1,
|
|
|
- ]
|
|
|
- ];
|
|
|
- $post['old_logistics_no'] = $whlabel;
|
|
|
- $post['trade_order_id']=$orderinfo;
|
|
|
- $post['old_service_name']=$ex;
|
|
|
-
|
|
|
+ $post['whlabel'] = $whlabel;
|
|
|
+ $post['all'] = $all;
|
|
|
+ $post['orderinfo'] = $orderinfo;
|
|
|
+ $post['ex'] = $ex;
|
|
|
$post['code'] = $code;
|
|
|
curl_setopt($ch, CURLOPT_POSTFIELDS,http_build_query($post));
|
|
|
$res = curl_exec($ch);
|