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