1
This commit is contained in:
parent
776fc7b50c
commit
d4c59408d8
@ -250,7 +250,7 @@ class KefuController {
|
|||||||
$share_conf = require('../config/kefu.share.config.php');
|
$share_conf = require('../config/kefu.share.config.php');
|
||||||
while (true) {
|
while (true) {
|
||||||
$rows = $conn->execQuery('SELECT idx, accountid, openid, awardtime, gameid ' .
|
$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(
|
array(
|
||||||
':last_idx' => $last_idx,
|
':last_idx' => $last_idx,
|
||||||
));
|
));
|
||||||
@ -303,7 +303,7 @@ class KefuController {
|
|||||||
}
|
}
|
||||||
$conn = $this->getMysql($accountid);
|
$conn = $this->getMysql($accountid);
|
||||||
$row = $conn->execQueryOne('SELECT awardtime ' .
|
$row = $conn->execQueryOne('SELECT awardtime ' .
|
||||||
"FROM accounts WHERE accountid = :accountid;",
|
' FROM accounts WHERE accountid = :accountid;',
|
||||||
array(
|
array(
|
||||||
':accountid' => $accountid,
|
':accountid' => $accountid,
|
||||||
));
|
));
|
||||||
@ -325,7 +325,7 @@ class KefuController {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if ($this->sendAwardMail($accountid, $awardConfig)) {
|
if ($this->sendAwardMail($accountid, $awardConfig)) {
|
||||||
$ret = $conn->execScript("UPDATE accounts SET " .
|
$ret = $conn->execScript('UPDATE accounts SET ' .
|
||||||
' awardtime=:awardtime ' .
|
' awardtime=:awardtime ' .
|
||||||
' WHERE accountid=:accountid; ',
|
' WHERE accountid=:accountid; ',
|
||||||
array(
|
array(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user