|
|
@@ -122,12 +122,13 @@ class Model_apittv1 extends Lin_Model {
|
|
|
|
|
|
$link .= '?shop_cipher='.$shop['shop_cipher'].'&app_key='.$shop['app_key'].'×tamp='.$time."&document_type=SHIPPING_LABEL";
|
|
|
$url = $url.$link;
|
|
|
- $headers = array('Content-Type: application/json','x-tts-access-token:'.$shop['token']);
|
|
|
- $url .= $link.'&sign=';
|
|
|
+
|
|
|
|
|
|
$sign = $this->apitt->sign($url,$shop['app_key'],'') ;
|
|
|
+ $headers = array('Content-Type: application/json','x-tts-access-token:'.$shop['token']);
|
|
|
+ $url .= $link.'&sign='.$sign;
|
|
|
var_dump($sign);
|
|
|
- $res = $this->apitt->su_curl('',$url,$headers,$date_type='json',$timeout=300,$httptype="GET");
|
|
|
+ $res = $this->apitt->su_curl('',$url,$headers,'json',300,"GET");
|
|
|
|
|
|
print_r($res);
|
|
|
die;
|