[edit] $form

This commit is contained in:
bvbej 2022-01-11 14:23:49 +08:00
parent 3cae5d7eb1
commit 794e991b5e

View File

@ -110,11 +110,7 @@ class BvBeJHandle
't' => $timestamp 't' => $timestamp
]); ]);
ksort($form); ksort($form);
$singArr = []; $sign = http_build_query($form);
foreach ($form as $k => $v) {
$singArr[urlencode(strval($k))] = urlencode(strval($v));
}
$sign = http_build_query($singArr);
try { try {
$signature = $this->AesEncrypt($sign, $key, $vi); $signature = $this->AesEncrypt($sign, $key, $vi);
if ($signature === false) { if ($signature === false) {