This commit is contained in:
aozhiwei 2019-08-01 13:23:45 +08:00
parent 776fc7b50c
commit d4c59408d8

View File

@ -250,7 +250,7 @@ class KefuController {
$share_conf = require('../config/kefu.share.config.php');
while (true) {
$rows = $conn->execQuery('SELECT idx, accountid, openid, awardtime, gameid ' .
"FROM accounts WHERE idx > :last_idx LIMIT 0, 1000;",
' FROM accounts WHERE idx > :last_idx LIMIT 0, 1000;',
array(
':last_idx' => $last_idx,
));
@ -303,7 +303,7 @@ class KefuController {
}
$conn = $this->getMysql($accountid);
$row = $conn->execQueryOne('SELECT awardtime ' .
"FROM accounts WHERE accountid = :accountid;",
' FROM accounts WHERE accountid = :accountid;',
array(
':accountid' => $accountid,
));
@ -325,9 +325,9 @@ class KefuController {
return;
}
if ($this->sendAwardMail($accountid, $awardConfig)) {
$ret = $conn->execScript("UPDATE accounts SET " .
$ret = $conn->execScript('UPDATE accounts SET ' .
' awardtime=:awardtime ' .
'WHERE accountid=:accountid; ',
' WHERE accountid=:accountid; ',
array(
':accountid' => $accountid,
':awardtime' => time()