|
|
@@ -281,8 +281,12 @@ class Model_express_tt extends Lin_Model {
|
|
|
}
|
|
|
//下载快递面单
|
|
|
private function downloadExpressLabel($info,$shop){
|
|
|
- $extra_text = json_decode($info['extra_text'],true);
|
|
|
- $packageid = $extra_text['label_info']['packageid'];
|
|
|
+ if(is_string($info['extra_text'])){
|
|
|
+ $extra_text = json_decode($info['extra_text'],true);
|
|
|
+ }else{
|
|
|
+ $extra_text = $info['extra_text'];
|
|
|
+ }
|
|
|
+ $packageid = $extra_text['label_info']['package_id'];
|
|
|
$res = $this->apitt->downloadLabel($packageid,$shop,$info);
|
|
|
if($res['code'] != 0){
|
|
|
return [
|