From 050d251dde19a277a7587fbc0027f07a1737ae27 Mon Sep 17 00:00:00 2001 From: bvbej Date: Tue, 11 Jan 2022 14:15:27 +0800 Subject: [PATCH] [edit] urlencode --- src/Handles/BvBeJHandle.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Handles/BvBeJHandle.php b/src/Handles/BvBeJHandle.php index 8d95527..a330669 100644 --- a/src/Handles/BvBeJHandle.php +++ b/src/Handles/BvBeJHandle.php @@ -110,7 +110,11 @@ class BvBeJHandle 't' => $timestamp ]); ksort($form); - $sign = http_build_query($form); + $singArr = []; + foreach ($form as $k => $v) { + $singArr[urlencode($k)] = urlencode($v); + } + $sign = http_build_query($singArr); try { $signature = $this->AesEncrypt($sign, $key, $vi); if ($signature === false) {