|
|
@@ -623,7 +623,7 @@ class Apiexpress extends Start_Controller {
|
|
|
echo json_encode(array('track'=>'','msg'=>'The shop has not activated this feature!!!','success'=>0));exit;
|
|
|
}
|
|
|
|
|
|
- $info = $this->logic_order->getInfoByTableName($table_name,"waybill = '".$waybill_no. "' and shop = ".$shop,"id,number,orderinfo,express,excontent,expressstate,waybill,dtime,printtime,client,name,country,province,city,address,address2,street,phone,zipcode,dlzemailtime,library,librarytime");
|
|
|
+ $info = $this->logic_order->getInfoByTableName($table_name,"waybill = '".$waybill_no. "' and shop = ".$shop,"id,number,orderinfo,express,excontent,expressstate,waybill,dtime,printtime,client,name,country,province,city,address,address2,street,phone,zipcode,dlzemailtime,library,librarytime,state");
|
|
|
|
|
|
if(empty($info)){
|
|
|
$info = $this->logic_order->getInfoByTableName($table_name,"orderinfo = '".$shop.$waybill_no. "' and shop = ".$shop,"id,number,orderinfo,express,excontent,expressstate,waybill,dtime,printtime,client,name,country,province,city,address,address2,street,phone,zipcode,dlzemailtime,library,librarytime");
|
|
|
@@ -637,8 +637,13 @@ class Apiexpress extends Start_Controller {
|
|
|
}
|
|
|
|
|
|
if(empty($info['excontent'])){
|
|
|
- // echo json_encode(array('track'=>'','msg'=>'There might be some delays during the transit. Please wait patiently or contact customer service for more details.','success'=>0));exit;
|
|
|
- echo json_encode(array('track'=>'','msg'=>'The item has not yet been shipped.','success'=>0));exit;
|
|
|
+ if($info['state'] == 207){
|
|
|
+ echo json_encode(array('track'=>'','msg'=>'The item has not yet been shipped.','success'=>0));exit;
|
|
|
+ }else{
|
|
|
+ echo json_encode(array('track'=>'','msg'=>'There might be some delays during the transit. Please wait patiently or contact customer service for more details.','success'=>0));exit;
|
|
|
+ }
|
|
|
+ //
|
|
|
+
|
|
|
}
|
|
|
|
|
|
if(strpos($info['excontent'],"[") !== false && strpos($info['excontent'],"]") !== false ){
|