public function getNewsByCondition($param=[]) {
$condition['status'] = [
'neq', config('code.status_delete')
];
$order = ['id' => 'desc'];
$from=($param['page']-1)*$param['size'];
$result = $this->where($condition)
->limit($from, $param['size'])
->order($order)
->select();
// echo $this->getLastSql();
return $result;
}
从这里开始就报这个错误了呢