|
|
|
@ -99,7 +99,7 @@ class YjlyClient
|
|
|
|
|
foreach ($signFields as $field) {
|
|
|
|
|
$data = $params[$field];
|
|
|
|
|
if (is_array($data)) {
|
|
|
|
|
// $data = json_encode($data);
|
|
|
|
|
$data = json_encode($data);
|
|
|
|
|
}
|
|
|
|
|
$signArray[] = $data;
|
|
|
|
|
}
|
|
|
|
@ -208,7 +208,7 @@ class YjlyClient
|
|
|
|
|
'serverId' => $order['server_id'],
|
|
|
|
|
'roleId' => $order['role_id'],
|
|
|
|
|
'userId' => $order['user_id'],
|
|
|
|
|
'mailData' => [['mailId' => $giftItem['id']]],
|
|
|
|
|
'mailData' => json_encode([['mailId' => $giftItem['id']]]),
|
|
|
|
|
'orderNum' => date("YmdHis").$order['id'].$order['user_id'].$giftItem['id'].rand(1000, 9999),
|
|
|
|
|
'time' => time(),
|
|
|
|
|
]);
|
|
|
|
|