/** * 获取查询参数 * * @param string $target * * @return array */ protected function get_params($target = "") { $request = Request::getInstance(); if ($target == "") { $controller = App::getController(true); $action = App::getAction(true); if ($action != 'index') { $target = $controller . '-' . $action; } else { $target = $controller; } } $params = $request->getQueryData(); $params = array_merge($params, $this->params); array_unshift($params, $target); return $params; }