public function index(HttpRequest $request) { $id = $request->getParameter("id", "intval"); $url = url("/site_service_index/?id={$id}&media_id=" . $this->loginMedia['id']); page301($url); }
/** * 媒体文章详情 * @param HttpRequest $request */ public function detail(HttpRequest $request) { $id = $request->getParameter('id', 'intval'); $url = url("/site_article_detail/?id={$id}&media_id=" . $this->loginMedia['id']); page301($url); }