|
@@ -510,6 +510,19 @@ function __construct(){
|
|
|
$res = json_decode($res,true);
|
|
$res = json_decode($res,true);
|
|
|
return $res;
|
|
return $res;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ public function get_detail($order_id,$shop){
|
|
|
|
|
+ $url = 'https://open-api.tiktokglobalshop.com';
|
|
|
|
|
+ $link = '/order/202309/orders';
|
|
|
|
|
+ $time = time();
|
|
|
|
|
+ $link .= '?shop_cipher='.$shop['shop_cipher'].'&app_key='.$shop['app_key'].'×tamp='.$time.'&ids='.$order_id;
|
|
|
|
|
+ $sign = $this->sign($link,$shop['app_secret'],'');
|
|
|
|
|
+ $url .= $link.'&sign='.$sign;
|
|
|
|
|
+ $headers = array('Content-Type: application/json','x-tts-access-token:'.$shop['token']);
|
|
|
|
|
+ $res = $this->su_curl('',$url,$headers,$date_type='json',$timeout=300,$httptype="GET");
|
|
|
|
|
+ $res = json_decode($res,true);
|
|
|
|
|
+ return $res;
|
|
|
|
|
+ }
|
|
|
//下载快递面单
|
|
//下载快递面单
|
|
|
public function downloadLabel($package_id,$shop,$info){
|
|
public function downloadLabel($package_id,$shop,$info){
|
|
|
$url = 'https://open-api.tiktokglobalshop.com';
|
|
$url = 'https://open-api.tiktokglobalshop.com';
|