|
@@ -83,8 +83,11 @@ function __construct(){
|
|
|
$product_id = 1222;
|
|
$product_id = 1222;
|
|
|
$link = 'param=';
|
|
$link = 'param=';
|
|
|
$ys = 0;//
|
|
$ys = 0;//
|
|
|
|
|
+ }else if($data['printcode'] == 'HUSLEI-HC-FEDEX2'){
|
|
|
|
|
+ $product_id = 1361;
|
|
|
|
|
+ $link = 'param=';
|
|
|
|
|
+ $ys = 0;//
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
$rs = $this->curlRequest('http://123.207.33.169:8082/selectAuth.htm',"username=LONGYI&password=1Z5MEC");
|
|
$rs = $this->curlRequest('http://123.207.33.169:8082/selectAuth.htm',"username=LONGYI&password=1Z5MEC");
|
|
|
$reData = json_decode(str_replace("'", "\"", $rs['result']));
|
|
$reData = json_decode(str_replace("'", "\"", $rs['result']));
|
|
|
$customer_id = $reData->customer_id;
|
|
$customer_id = $reData->customer_id;
|
|
@@ -182,7 +185,7 @@ function __construct(){
|
|
|
'duty_type'=>$duty_type,
|
|
'duty_type'=>$duty_type,
|
|
|
);
|
|
);
|
|
|
}
|
|
}
|
|
|
- if($data['printcode'] == 'HUALEI-GES-UK' || $data['printcode'] == 'HUALEI-XB-CA'){
|
|
|
|
|
|
|
+ if($data['printcode'] == 'HUALEI-GES-UK' || $data['printcode'] == 'HUALEI-XB-CA' || $data['printcode'] == 'HUALEI-WMS' || $data['printcode'] == 'HUSLEI-HC-FEDEX2'){
|
|
|
if($data['printnumber'] > 0){
|
|
if($data['printnumber'] > 0){
|
|
|
$count['order_customerinvoicecode'] = $data['number']."-".$data['printnumber'];
|
|
$count['order_customerinvoicecode'] = $data['number']."-".$data['printnumber'];
|
|
|
}
|
|
}
|
|
@@ -213,7 +216,7 @@ function __construct(){
|
|
|
$pdf = $this->get_pdf($resultData['order_id']);
|
|
$pdf = $this->get_pdf($resultData['order_id']);
|
|
|
if($pdf['x'] == 1)
|
|
if($pdf['x'] == 1)
|
|
|
{
|
|
{
|
|
|
- if($product_id == 4361)
|
|
|
|
|
|
|
+ if($product_id == 4361 || $product_id == 1361)
|
|
|
{
|
|
{
|
|
|
$g = array('x'=>'1','ys'=>0,'waybill'=>$resultData['order_privatecode'],'waybill2'=>$resultData['tracking_number'],'label'=>$pdf['label']);
|
|
$g = array('x'=>'1','ys'=>0,'waybill'=>$resultData['order_privatecode'],'waybill2'=>$resultData['tracking_number'],'label'=>$pdf['label']);
|
|
|
}else if($product_id == 4301 || $product_id == 4461 || $product_id == 4181){
|
|
}else if($product_id == 4301 || $product_id == 4461 || $product_id == 4181){
|