@@ -942,20 +942,20 @@ discard block |
||
942 | 942 | $sign = $this->createSign(); |
943 | 943 | //组织参数 |
944 | 944 | $strParam = $this->createStrParam(); |
945 | - $strParam .= 'sign=' . $sign; |
|
945 | + $strParam .= 'sign='.$sign; |
|
946 | 946 | //访问服务 |
947 | 947 | if ($this->protocol === 'http') { |
948 | 948 | if (empty($this->sandbox)) { |
949 | - $url = 'http://gw.api.taobao.com/router/rest?' . $strParam; |
|
950 | - } else { |
|
951 | - $url = 'http://gw.api.tbsandbox.com/router/rest?' . $strParam; |
|
949 | + $url = 'http://gw.api.taobao.com/router/rest?'.$strParam; |
|
950 | + }else { |
|
951 | + $url = 'http://gw.api.tbsandbox.com/router/rest?'.$strParam; |
|
952 | 952 | } |
953 | 953 | } |
954 | 954 | if ($this->protocol === 'https') { |
955 | 955 | if (empty($this->sandbox)) { |
956 | - $url = 'https://eco.taobao.com/router/rest?' . $strParam; |
|
957 | - } else { |
|
958 | - $url = 'https://gw.api.tbsandbox.com/router/rest?' . $strParam; |
|
956 | + $url = 'https://eco.taobao.com/router/rest?'.$strParam; |
|
957 | + }else { |
|
958 | + $url = 'https://gw.api.tbsandbox.com/router/rest?'.$strParam; |
|
959 | 959 | } |
960 | 960 | } |
961 | 961 | $result = file_get_contents($url); |
@@ -980,7 +980,7 @@ discard block |
||
980 | 980 | ksort($this->param); |
981 | 981 | foreach ($this->param as $key => $val) { |
982 | 982 | if ($key !== '' && $val !== '') { |
983 | - $sign .= $key . $val; |
|
983 | + $sign .= $key.$val; |
|
984 | 984 | } |
985 | 985 | } |
986 | 986 | $sign .= $this->app_secret; |
@@ -997,7 +997,7 @@ discard block |
||
997 | 997 | $strParam = ''; |
998 | 998 | foreach ($this->param as $key => $val) { |
999 | 999 | if ($key !== '' && $val !== '') { |
1000 | - $strParam .= $key . '=' . urlencode($val) . '&'; |
|
1000 | + $strParam .= $key.'='.urlencode($val).'&'; |
|
1001 | 1001 | } |
1002 | 1002 | } |
1003 | 1003 | return $strParam; |