From b2e63547e47e3e22e4ca851ca6c2801770f1e6d9 Mon Sep 17 00:00:00 2001 From: ljl Date: Thu, 21 Sep 2023 09:55:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Base/Tool/GameResource/YjlyClient.class.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Application/Base/Tool/GameResource/YjlyClient.class.php b/Application/Base/Tool/GameResource/YjlyClient.class.php index 39dc86212..09a78b89e 100644 --- a/Application/Base/Tool/GameResource/YjlyClient.class.php +++ b/Application/Base/Tool/GameResource/YjlyClient.class.php @@ -97,7 +97,11 @@ class YjlyClient $signFields = ['appId', 'serverId', 'roleId', 'userId', $apiBizFieldMap[$name], 'orderNum', 'time']; $signArray = []; foreach ($signFields as $field) { - $signArray[] = $params[$field]; + $data = $params[$field]; + if (is_array($data)) { + $data = json_encode($data); + } + $signArray[] = $data; } $signString = implode('', $signArray) . self::SIGN_KEY; $this->log('SignString ' . $signString);