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);