lvhao 2 ngày trước cách đây
mục cha
commit
8d4d52379b
1 tập tin đã thay đổi với 6 bổ sung0 xóa
  1. 6 0
      core/CoreApp/models/Model_express_tt.php

+ 6 - 0
core/CoreApp/models/Model_express_tt.php

@@ -37,6 +37,12 @@ class Model_express_tt extends Lin_Model {
            if($res1['x'] == 0){
                return $res1;
            }
+           if(is_string($info['extra_text'])){
+               $info['extra_text'] = json_decode($info['extra_text'],true);
+           }
+           if(empty($info['extra_text']['label_info'])){
+                sleep(2);
+           }
            $res2 = $this->downloadExpressLabel($res1['data'],$shop_info[0]);
            return $res2;