|
@@ -102,6 +102,14 @@ class Model_Fedexv1 extends Lin_Model {
|
|
$customer_streets[] = $order_info['address2'];
|
|
$customer_streets[] = $order_info['address2'];
|
|
}
|
|
}
|
|
$state_codes = $this->aapeizhi->getFedexStateCode();
|
|
$state_codes = $this->aapeizhi->getFedexStateCode();
|
|
|
|
+ $hgbm = 67041900;
|
|
|
|
+ if(isset($order_info['hgbm']))
|
|
|
|
+ {
|
|
|
|
+ if($order_info['hgbm'] != '')
|
|
|
|
+ {
|
|
|
|
+ $hgbm = $order_info['hgbm'];
|
|
|
|
+ }
|
|
|
|
+ }
|
|
$params = [
|
|
$params = [
|
|
"labelResponseOptions"=>"URL_ONLY",
|
|
"labelResponseOptions"=>"URL_ONLY",
|
|
"accountNumber"=>[
|
|
"accountNumber"=>[
|
|
@@ -185,6 +193,7 @@ class Model_Fedexv1 extends Lin_Model {
|
|
]
|
|
]
|
|
]
|
|
]
|
|
],
|
|
],
|
|
|
|
+ "rateRequestType"=>['LIST'],
|
|
"labelSpecification"=>[
|
|
"labelSpecification"=>[
|
|
"imageType"=>"PDF",
|
|
"imageType"=>"PDF",
|
|
"labelStockType"=>"STOCK_4X6",
|
|
"labelStockType"=>"STOCK_4X6",
|
|
@@ -197,13 +206,15 @@ class Model_Fedexv1 extends Lin_Model {
|
|
|
|
|
|
"customsClearanceDetail"=>[
|
|
"customsClearanceDetail"=>[
|
|
"dutiesPayment"=>[
|
|
"dutiesPayment"=>[
|
|
- "paymentType"=>"SENDER",
|
|
|
|
|
|
+ "paymentType"=>"RECIPIENT",
|
|
],
|
|
],
|
|
"documentContent"=>"COMMODITY",
|
|
"documentContent"=>"COMMODITY",
|
|
"commodities"=>[
|
|
"commodities"=>[
|
|
[
|
|
[
|
|
|
|
+ "numberOfPieces"=>$order_info['zjs'],
|
|
"description"=>$order_info['sbpm'].'-'.$order_info['ts'].'PCS',
|
|
"description"=>$order_info['sbpm'].'-'.$order_info['ts'].'PCS',
|
|
"countryOfManufacture"=> "CN",
|
|
"countryOfManufacture"=> "CN",
|
|
|
|
+ 'harmonizedCode'=> $hgbm,//海关编码
|
|
"quantity"=> $order_info['ts'],
|
|
"quantity"=> $order_info['ts'],
|
|
"quantityUnits"=> "cm",
|
|
"quantityUnits"=> "cm",
|
|
"unitPrice"=> [
|
|
"unitPrice"=> [
|