|
|
@@ -225,6 +225,12 @@ class Model_express_tt extends Lin_Model {
|
|
|
];
|
|
|
}
|
|
|
$res = $this->apitt->getExpressCompany($info,$shop_info);
|
|
|
+ if(empty($res)){
|
|
|
+ return [
|
|
|
+ 'x'=>0,
|
|
|
+ 'Description'=>"返回信息为空",
|
|
|
+ ];
|
|
|
+ }
|
|
|
if($res['code'] != 0){
|
|
|
return [
|
|
|
'x'=>0,
|
|
|
@@ -259,6 +265,12 @@ class Model_express_tt extends Lin_Model {
|
|
|
];
|
|
|
}
|
|
|
$res = $this->apitt->createLabel($info,$shop_info);
|
|
|
+ if(empty($res)){
|
|
|
+ return [
|
|
|
+ 'x'=>0,
|
|
|
+ 'Description'=>"返回信息为空",
|
|
|
+ ];
|
|
|
+ }
|
|
|
if($res['code'] != 0){
|
|
|
return [
|
|
|
'x'=>0,
|