Skip to content

Commit

Permalink
fix #7
Browse files Browse the repository at this point in the history
  • Loading branch information
ennnnny committed Apr 26, 2019
1 parent 53a870b commit 4a8f998
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Kernel/BaseClient.php
Expand Up @@ -78,7 +78,6 @@ public function httpPost($method, array $data = [], $auth = false)
$sysParams["sign_method"] = $this->globalConfig['signMethod'];
$sysParams["method"] = $method;
$sysParams["timestamp"] = date("Y-m-d H:i:s");
$sysParams["sign"] = Support\generateSign(array_merge($data, $sysParams), $this->globalConfig['secretKey']);
if ($auth){
if (isset($this->globalConfig['session']) && !empty($this->globalConfig['session'])){
$sysParams["session"] = $this->globalConfig['session'];
Expand All @@ -88,6 +87,7 @@ public function httpPost($method, array $data = [], $auth = false)
return $result;
}
}
$sysParams["sign"] = Support\generateSign(array_merge($data, $sysParams), $this->globalConfig['secretKey']);
$requestUrl = $this->baseUri . '?';
foreach ($sysParams as $sysParamKey => $sysParamValue) {
$requestUrl .= "$sysParamKey=" . urlencode($sysParamValue) . "&";
Expand Down

0 comments on commit 4a8f998

Please sign in to comment.