|
|
@@ -433,18 +433,19 @@ function __construct(){
|
|
|
$order_line_item_ids[] = $v['id'];
|
|
|
}
|
|
|
$post = [
|
|
|
- "order_line_item_ids"=>["32132124331234"],
|
|
|
+ "order_line_item_ids"=>$order_line_item_ids,
|
|
|
"weight"=>[
|
|
|
- "value"=>"0.4",
|
|
|
+ "value"=>"400",
|
|
|
"unit"=>"GRAM"
|
|
|
],
|
|
|
"dimension"=>[
|
|
|
- "length"=> "0.3",
|
|
|
- "width"=> "0.2",
|
|
|
- "height"=> "0.3",
|
|
|
- "unit"=> "INCH"
|
|
|
+ "length"=> "15",
|
|
|
+ "width"=> "10",
|
|
|
+ "height"=> "5",
|
|
|
+ "unit"=> "CM"
|
|
|
]
|
|
|
];
|
|
|
+ echo "<pre>";
|
|
|
var_dump(json_encode($post,JSON_UNESCAPED_UNICODE));
|
|
|
$queryParams['shop_cipher'] =$shop['shop_cipher'];
|
|
|
$queryParams['app_key'] =$shop['app_key'];
|