* [misc] replace COUNT(*) with COUNT(1) in sql.

This commit is contained in:
liugang
2024-06-27 14:07:27 +08:00
committed by 王于听
parent 250b4914a8
commit a4d2de38f0
43 changed files with 150 additions and 150 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ class tutorialModel extends model
if($account == 'guest') return false;
if(!empty($this->app->user->modifyPassword)) return false;
$count = $this->dao->select('count(*) AS count')->from(TABLE_ACTION)->where('actor')->eq($account)->fetch('count');
$count = $this->dao->select('COUNT(1) AS count')->from(TABLE_ACTION)->where('actor')->eq($account)->fetch('count');
if($count < 10) return true;
$this->loadModel('setting')->setItem($account . '.common.global.novice', 0);