Default Changelist

This commit is contained in:
xl
2023-11-07 16:09:40 +08:00
parent ac70bd3df5
commit b8960deda5
+5 -3
View File
@@ -39,9 +39,11 @@ trait WxV3PaymentTait
*/
public function signature(string $http_method, string $canonical_url, string $body = ''): string
{
$rand = md5(random_bytes(32));
$time = time();
$message = sprintf("%s\n%s\n%d\n%s\n[]\n", $http_method, $canonical_url, $time, $rand);
$rand = md5(random_bytes(32));
$time = time();
var_dump($body);
$message = sprintf("%s\n%s\n%d\n%s\n%s\n", $http_method, $canonical_url, $time, $rand, $body);
$sign = $this->openssl_signature($message);