Default Changelist
This commit is contained in:
@@ -39,7 +39,9 @@ trait WxV3PaymentTait
|
||||
*/
|
||||
public function signature(string $http_method, string $canonical_url, string $body = ''): string
|
||||
{
|
||||
$message = $http_method . "\n" . $canonical_url . "\n" . ($time = time()) . "\n" . ($rand = md5(random_bytes(32))) . "\n" . $body . "\n";
|
||||
$rand = md5(random_bytes(32));
|
||||
$time = time();
|
||||
$message = sprintf("%s\n%s\n%d\n%s\n\n", $http_method, $canonical_url, $time, $rand);
|
||||
|
||||
$sign = $this->openssl_signature($message);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user