|
@@ -567,6 +567,19 @@ function __construct(){
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ public function getPayInfo($order_id,$shop){
|
|
|
|
|
+ $url = 'https://open-api.tiktokglobalshop.com';
|
|
|
|
|
+ $link = '/order/202407/orders/'.$order_id.'/price_detail';
|
|
|
|
|
+ $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 get_detail($order_id,$shop){
|
|
public function get_detail($order_id,$shop){
|