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