order 字段名添加分隔符

order方法中的字段名 rank 不会自动添加 `` ,导致在某些MySQL版本中会报错
pull/104/head
Instrye 7 years ago committed by GitHub
parent d9fa51a615
commit ff4fa3f9b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -17,7 +17,7 @@ class CronHandler extends Model{
public $notifiedUid = [];
public function __construct(){
$this->cornTasks = Db::name('corn')->where('enable',1)->order('rank desc')->select();
$this->cornTasks = Db::name('corn')->where('enable',1)->order('`rank` desc')->select();
$this->timeNow = time();
}

Loading…
Cancel
Save