|
@@ -2554,23 +2554,25 @@ class Api extends Start_Controller {
|
|
|
{
|
|
|
$exstate = 6;//签收
|
|
|
}
|
|
|
- $pd = array();$xq = '';
|
|
|
+ //$pd = array();
|
|
|
+ $pd = "";
|
|
|
+ $xq = '';
|
|
|
|
|
|
|
|
|
if(isset($j['track_info']['tracking']['providers'][0]['events']))
|
|
|
{
|
|
|
- if(empty($j['track_info']['tracking']['providers'][0]['events'])){
|
|
|
- $pd = "";
|
|
|
- }else{
|
|
|
- foreach ($j['track_info']['tracking']['providers'][0]['events'] as $k=>$v)
|
|
|
- {
|
|
|
- if($k == 0)
|
|
|
- {
|
|
|
- $pd = $v['description'];
|
|
|
- }
|
|
|
- $xq .= date('Y-m-d H:i:s',strtotime($v['time_iso'])).' ['.$v['location'].'] '.$v['description'].'<br />';// a日期 c地址 z状态
|
|
|
- }
|
|
|
- }
|
|
|
+ // if(empty($j['track_info']['tracking']['providers'][0]['events'])){
|
|
|
+ // $pd = "";
|
|
|
+ // }else{
|
|
|
+ // foreach ($j['track_info']['tracking']['providers'][0]['events'] as $k=>$v)
|
|
|
+ // {
|
|
|
+ // if($k == 0)
|
|
|
+ // {
|
|
|
+ // $pd = $v['description'];
|
|
|
+ // }
|
|
|
+ // $xq .= date('Y-m-d H:i:s',strtotime($v['time_iso'])).' ['.$v['location'].'] '.$v['description'].'<br />';// a日期 c地址 z状态
|
|
|
+ // }
|
|
|
+ // }
|
|
|
|
|
|
|
|
|
|
|
@@ -2595,9 +2597,9 @@ class Api extends Start_Controller {
|
|
|
$exstate = 1;//异常
|
|
|
}
|
|
|
}
|
|
|
- if(is_array($express[$d['express']]) || is_array($pd)){
|
|
|
- $this->logic_ding->sendToDing("17track接口返回信息类型异常".json_encode($express[$d['express']],JSON_UNESCAPED_UNICODE)."===".json_encode($pd,JSON_UNESCAPED_UNICODE)."====".json_encode($j,JSON_UNESCAPED_UNICODE));
|
|
|
- }
|
|
|
+ // if(is_array($express[$d['express']]) || is_array($pd)){
|
|
|
+ // $this->logic_ding->sendToDing("17track接口返回信息类型异常".json_encode($express[$d['express']],JSON_UNESCAPED_UNICODE)."===".json_encode($pd,JSON_UNESCAPED_UNICODE)."====".json_encode($j,JSON_UNESCAPED_UNICODE));
|
|
|
+ // }
|
|
|
$awlgx = $this->awlgx->get_number($d['number']);
|
|
|
if($awlgx)
|
|
|
{
|