|
@@ -169,12 +169,13 @@ function __construct(){
|
|
// var_dump(json_encode($count));
|
|
// var_dump(json_encode($count));
|
|
$this->logic_ding->sendToDing("hualei发货单请求的报文".$link.json_encode($count));
|
|
$this->logic_ding->sendToDing("hualei发货单请求的报文".$link.json_encode($count));
|
|
$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));
|
|
$resultData = json_decode($result['result'], true);
|
|
$resultData = json_decode($result['result'], true);
|
|
- $this->logic_ding->sendToDing("hualei发货单回执的报文result".$result);
|
|
|
|
|
|
+
|
|
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));
|
|
|
|
|
|
+ $this->logic_ding->sendToDing("hualei发货单回执的报文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'])
|
|
@@ -198,16 +199,16 @@ function __construct(){
|
|
}
|
|
}
|
|
else
|
|
else
|
|
{
|
|
{
|
|
- $g = array('x'=>'0','Description'=>json_encode($pdf));
|
|
|
|
|
|
+ $g = array('x'=>'0','Description'=>json_encode($pdf,JSON_UNESCAPED_UNICODE));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
else
|
|
else
|
|
{
|
|
{
|
|
$resultData['message'] = urldecode($resultData['message']);
|
|
$resultData['message'] = urldecode($resultData['message']);
|
|
- $g = array('x'=>'0','Description'=>json_encode($resultData));
|
|
|
|
|
|
+ $g = array('x'=>'0','Description'=>json_encode($resultData ,JSON_UNESCAPED_UNICODE));
|
|
}
|
|
}
|
|
- $this->logic_ding->sendToDing("hualei发货单回执的pdf报文".json_encode($g));
|
|
|
|
|
|
+ $this->logic_ding->sendToDing("hualei发货单回执的pdf报文".json_encode($g,JSON_UNESCAPED_UNICODE));
|
|
return $g;exit;
|
|
return $g;exit;
|
|
}
|
|
}
|
|
|
|
|