From ab0c86a3c3eaa8a1924bb64e1e59d639aff0a23f Mon Sep 17 00:00:00 2001 From: bvbej Date: Tue, 11 Jan 2022 13:58:02 +0800 Subject: [PATCH] [edit] sign header --- src/Handles/BvBeJHandle.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Handles/BvBeJHandle.php b/src/Handles/BvBeJHandle.php index fc4d77e..3eb6170 100644 --- a/src/Handles/BvBeJHandle.php +++ b/src/Handles/BvBeJHandle.php @@ -110,9 +110,9 @@ class BvBeJHandle 't' => $timestamp ]); ksort($form); - $http_build_query = http_build_query($form); + $sign = urldecode(http_build_query($form)); try { - $signature = $this->AesEncrypt($http_build_query, $key, $vi); + $signature = $this->AesEncrypt($sign, $key, $vi); if ($signature === false) { return false; }