修复客服邮件问题

This commit is contained in:
aozhiwei 2019-07-30 20:52:17 +08:00
parent 07dfe97984
commit ba2c2ee5e7

View File

@ -87,8 +87,8 @@ class KefuController {
'to' => $accountid, 'to' => $accountid,
'game_id' => phpcommon\extractGameId($accountid), 'game_id' => phpcommon\extractGameId($accountid),
'from' => '客服', 'from' => '客服',
'mail_type' => -1, 'mail_type' => 1,
'mail_subtype' => -1, 'mail_subtype' => 0,
'subject' => '领奖', 'subject' => '领奖',
'content' => '领取奖励', 'content' => '领取奖励',
'sendtime' => time(), 'sendtime' => time(),
@ -169,6 +169,7 @@ class KefuController {
public function notifyAllUser() public function notifyAllUser()
{ {
error_log('notifyAllUser');
set_time_limit(1800); set_time_limit(1800);
$media_conf = array(); $media_conf = array();
$dbconfs = require('../config/kefu.mysql.cluster.php');; $dbconfs = require('../config/kefu.mysql.cluster.php');;
@ -222,7 +223,7 @@ class KefuController {
return; return;
} }
$ret_info = json_decode($response, true); $ret_info = json_decode($response, true);
//error_log(json_encode($response)); error_log(json_encode($response));
return !empty($ret_info) && $ret_info['errcode'] == 0; return !empty($ret_info) && $ret_info['errcode'] == 0;
} }