* Code formatter for tutorial.

This commit is contained in:
wangxuepeng
2023-11-16 10:13:42 +08:00
parent 8f471e51ab
commit 9a43a97894
+1 -1
View File
@@ -24,7 +24,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(*) 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);