This commit is contained in:
aozhiwei 2019-01-29 15:40:36 +08:00
parent 11b0894619
commit 873a8e06af

View File

@ -73,11 +73,7 @@ class KefuController {
$attachments .= $attachment['item_id'] . ':' . $attachment['count'] . ';'; $attachments .= $attachment['item_id'] . ':' . $attachment['count'] . ';';
} }
$response = ''; $params = array(
if (!phpcommon\HttpClient::get($url,
array(
'c' => 'Mail',
'a' => 'sendMail',
'to' => $accountid, 'to' => $accountid,
'game_id' => phpcommon\extractGameId($accountid), 'game_id' => phpcommon\extractGameId($accountid),
'from' => '客服', 'from' => '客服',
@ -89,7 +85,14 @@ class KefuController {
'ext' => '', 'ext' => '',
'expire_time' => time() + 3600 * 24, 'expire_time' => time() + 3600 * 24,
'attachments' => $this->translateAttachments($config) 'attachments' => $this->translateAttachments($config)
), );
$params['c'] = 'Mail';
$params['a'] = 'sendMail';
$params['timestamp'] = time();
$params['sign'] = phpcommon\md5Sign($params, '14e1b600b1fd579f47433b88e8d85291', $params['timestamp']);
$response = '';
if (!phpcommon\HttpClient::get($url,
$params,
$response)) { $response)) {
return false; return false;
} }