Skip to content

Commit

Permalink
delete spot ws 443
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouaini528 committed May 25, 2021
1 parent 5d3538f commit baf7939
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Api/WebSocket/SocketFunction.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ private function auth(string $host,array $keysecret){
//accessKey,signatureMethod,signatureVersion,timestamp
$param_tmp=$this->sort($param);
$host_tmp=explode('/', $host);
if(isset($host_tmp[1])) $temp="GET\n" . $host_tmp[2] . ":443\n" . '/ws/v2' . "\n" . implode('&', $param_tmp);
if(isset($host_tmp[1])) $temp="GET\n" . $host_tmp[2] . "\n" . '/ws/v2' . "\n" . implode('&', $param_tmp);

$signature=base64_encode(hash_hmac('sha256', $temp ?? '', $keysecret['secret'], true));

Expand Down

0 comments on commit baf7939

Please sign in to comment.