lvhao 1 天之前
父节点
当前提交
2f5f36fa49
共有 1 个文件被更改,包括 12 次插入2 次删除
  1. 12 2
      core/CoreApp/models/Model_apittv1.php

+ 12 - 2
core/CoreApp/models/Model_apittv1.php

@@ -107,8 +107,18 @@ class Model_apittv1 extends Lin_Model {
     }
 
     public function downloadLabel($package_id,$shop,$info){
-        $res = $this->apitt->downloadLabel($package_id,$shop,$info);
-        return $res;
+            $rr1 = $this->apitt->getExpressCompany($info,$shop);
+            var_dump($rr1);
+            die;
+            if($rr1['x'] == 0){
+                return $rr1;
+            }
+            $info = $rr1['data'];
+            if(is_string($info['extra_text'])){
+                $info['extra_text'] = json_decode($info['extra_text'],true);
+            }
+        // $res = $this->apitt->downloadLabel($package_id,$shop,$info);
+        // return $res;
     }
     // public function downloadLabel($package_id,$shop,$info){
     //     $url = 'https://open-api.tiktokglobalshop.com';