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