|
@@ -56,12 +56,7 @@ function __construct(){
|
|
|
$ys = 0;//
|
|
$ys = 0;//
|
|
|
$duty_type = "DDP";
|
|
$duty_type = "DDP";
|
|
|
}
|
|
}
|
|
|
- else if($data['printcode'] == 'HUALEI-MLXY'){
|
|
|
|
|
- $product_id = 7581;
|
|
|
|
|
- $link = 'param=';
|
|
|
|
|
- $ys = 0;//
|
|
|
|
|
- //$duty_type = "DDP";
|
|
|
|
|
- }else if($data['printcode'] == 'HUALEI-MGLB'){
|
|
|
|
|
|
|
+ else if($data['printcode'] == 'HUALEI-MGLB'){
|
|
|
$product_id = 8641;
|
|
$product_id = 8641;
|
|
|
$link = 'param=';
|
|
$link = 'param=';
|
|
|
$ys = 0;//
|
|
$ys = 0;//
|
|
@@ -171,17 +166,17 @@ function __construct(){
|
|
|
}
|
|
}
|
|
|
// var_dump($link);
|
|
// var_dump($link);
|
|
|
// var_dump(json_encode($count));
|
|
// var_dump(json_encode($count));
|
|
|
- $this->logic_ding->sendToDing("hualei发货单请求的报文".$link.json_encode($count));
|
|
|
|
|
|
|
+ $this->logic_ding->sendToDing("hualeiv1发货单请求的报文".$link.json_encode($count));
|
|
|
$start_time = time();
|
|
$start_time = time();
|
|
|
$result = $this->curlRequest('http://123.207.33.169:8082/createOrderApi.htm',$link.json_encode($count));
|
|
$result = $this->curlRequest('http://123.207.33.169:8082/createOrderApi.htm',$link.json_encode($count));
|
|
|
- $this->logic_ding->sendToDing("hualei发货单回执的报文result".json_encode($result,JSON_UNESCAPED_UNICODE));
|
|
|
|
|
|
|
+ $this->logic_ding->sendToDing("hualeiv1发货单回执的报文result".json_encode($result,JSON_UNESCAPED_UNICODE));
|
|
|
|
|
|
|
|
$resultData = json_decode($result['result'], true);
|
|
$resultData = json_decode($result['result'], true);
|
|
|
|
|
|
|
|
if(isset($resultData['message'])){
|
|
if(isset($resultData['message'])){
|
|
|
$resultData['message'] = urldecode($resultData['message']);
|
|
$resultData['message'] = urldecode($resultData['message']);
|
|
|
}
|
|
}
|
|
|
- $this->logic_ding->sendToDing("hualei发货单回执的报文resultData".json_encode($resultData,JSON_UNESCAPED_UNICODE));
|
|
|
|
|
|
|
+ $this->logic_ding->sendToDing("hualeiv1发货单回执的报文resultData".json_encode($resultData,JSON_UNESCAPED_UNICODE));
|
|
|
if($resultData['ack'] == 'true')
|
|
if($resultData['ack'] == 'true')
|
|
|
{
|
|
{
|
|
|
//if($resultData['tracking_number'] == $resultData['reference_number'])
|
|
//if($resultData['tracking_number'] == $resultData['reference_number'])
|
|
@@ -221,7 +216,7 @@ function __construct(){
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- $this->logic_ding->sendToDing("hualei发货单回执的pdf报文".json_encode($g,JSON_UNESCAPED_UNICODE));
|
|
|
|
|
|
|
+ $this->logic_ding->sendToDing("hualeiv1发货单回执的pdf报文".json_encode($g,JSON_UNESCAPED_UNICODE));
|
|
|
return $g;exit;
|
|
return $g;exit;
|
|
|
}
|
|
}
|
|
|
|
|
|