IsLogin(); } /** * 列表 * @author Devil * @blog http://gong.gg/ * @version 1.0.0 * @date 2020-06-30 * @desc description */ public function Index() { // 浏览器名称 MyViewAssign('home_seo_site_title', SeoService::BrowserSeoTitle('商品收藏', 1)); return MyView(); } /** * 详情 * @author Devil * @blog http://gong.gg/ * @version 1.0.0 * @date 2020-06-30 * @desc description */ public function Detail() { MyViewAssign('data', $this->data_detail); MyViewAssign('is_header', 0); MyViewAssign('is_footer', 0); return MyView(); } /** * 商品收藏取消 * @author Devil * @blog http://gong.gg/ * @version 1.0.0 * @date 2018-09-13 * @desc description */ public function Delete() { // 是否ajax请求 if(!IS_AJAX) { $this->error('非法访问'); } $params = $this->data_post; $params['user'] = $this->user; return GoodsFavorService::GoodsFavorDelete($params); } } ?>