'asc']; protected string|array $orderGuarantee = ['id' => 'asc']; protected bool $modelValidate = false; protected function initController(WebmanRequest $request): ?Response { $this->model = new \app\common\model\GameConfig(); return null; } /** * 列表:排除独立表单维护的 36 字花字典 */ protected function _index(): Response { if ($this->request && $this->request->get('select')) { return $this->select($this->request); } list($where, $alias, $limit, $order) = $this->queryBuilder(); $table = strtolower($this->model->getTable()); $mainShort = $alias[$table] ?? ''; if ($mainShort !== '') { $where[] = [$mainShort . '.config_key', '<>', ZiHuaDictionaryLib::CONFIG_KEY]; } $res = $this->model ->field($this->indexField) ->withJoin($this->withJoinTable, $this->withJoinType) ->with($this->withJoinTable) ->alias($alias) ->where($where) ->order($order) ->paginate($limit); return $this->success('', [ 'list' => $res->items(), 'total' => $res->total(), 'remark' => get_route_remark(), ]); } }