* change for zentaopm.

This commit is contained in:
wangyidong
2018-10-10 15:01:13 +08:00
parent 7db8e54bcf
commit c69784a466
+6 -1
View File
@@ -237,7 +237,12 @@ class scoreModel extends model
if($lastID == 0)
{
$this->dao->query("UPDATE " . TABLE_USER . " SET `score`=0, `scoreLevel`=0");
$this->dao->query("TRUNCATE TABLE " . TABLE_SCORE);
$this->dao->delete()->from(TABLE_SCORE)->exec();
try
{
$this->dbh->exec('ALTER TABLE ' . TABLE_SCORE . ' auto_increment=1');
}
catch(Exception $e){}
}
$actions = $this->dao->select('*')->from(TABLE_ACTION)->where('id')->gt($lastID)->orderBy('id_asc')->limit(100)->fetchAll('id');