修改bug

master
ljl 1 year ago
parent 9b46ed5964
commit b2e63547e4

@ -97,7 +97,11 @@ class YjlyClient
$signFields = ['appId', 'serverId', 'roleId', 'userId', $apiBizFieldMap[$name], 'orderNum', 'time']; $signFields = ['appId', 'serverId', 'roleId', 'userId', $apiBizFieldMap[$name], 'orderNum', 'time'];
$signArray = []; $signArray = [];
foreach ($signFields as $field) { 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; $signString = implode('', $signArray) . self::SIGN_KEY;
$this->log('SignString ' . $signString); $this->log('SignString ' . $signString);

Loading…
Cancel
Save