request->get(); $selectValue = [ 'link_type' => !empty($get['link_type']) && $get['link_type'] != 'undefined' ? $get['link_type'] : 0, 'link_address' => !empty($get['link_address']) && $get['link_address'] != 'undefined' ? $get['link_address'] : '', 'category_id' => !empty($get['category_id']) && $get['category_id'] != 'undefined' ? $get['category_id'] : null, 'mnp_original_id' => !empty($get['mnp_original_id']) && $get['mnp_original_id'] != 'undefined' ? $get['mnp_original_id'] : '', 'mnp_app_id' => !empty($get['mnp_app_id']) && $get['mnp_app_id'] != 'undefined' ? $get['mnp_app_id'] : '', 'mnp_path' => !empty($get['mnp_path']) && $get['mnp_path'] != 'undefined' ? $get['mnp_path'] : '', 'mnp_params' => !empty($get['mnp_params']) && $get['mnp_params'] != 'undefined' ? $get['mnp_params'] : '', 'mnp_version' => !empty($get['mnp_version']) && $get['mnp_version'] != 'undefined' ? $get['mnp_version'] : '', ]; return view('',['select_value'=>json_encode($selectValue, JSON_UNESCAPED_UNICODE)]); } /** * @notes 获取基础页面 */ public function getBasePage() { $base_page = SelectLinkLogic::getBasePage(); return JsonServer::success('',$base_page); } /** * @notes 获取普通商品 */ public function getOrdinaryGoods() { if ($this->request->isAjax()) { $get = $this->request->get(); return JsonServer::success('',SelectLinkLogic::getOrdinaryGoods($get)); } } /** * @notes 获取平台商品分类 */ public function getPlatformGoodsCategory() { if ($this->request->isAjax()) { $get = $this->request->get(); return JsonServer::success('',SelectLinkLogic::getPlatformGoodsCategory($get)); } } /** * @notes 获取商家列表 */ public function getShopList() { if ($this->request->isAjax()) { $get = $this->request->get(); return JsonServer::success('',SelectLinkLogic::getShopList($get)); } } /** * @notes 获取活动专区 */ public function getActivityArea() { if ($this->request->isAjax()) { $get = $this->request->get(); return JsonServer::success('',SelectLinkLogic::getActivityArea($get)); } } /** * @notes 获取秒杀商品 */ public function getSeckillGoods() { if ($this->request->isAjax()) { $get = $this->request->get(); return JsonServer::success('',SelectLinkLogic::getSeckillGoods($get)); } } /** * @notes 获取拼团商品 */ public function getTeamGoods() { if ($this->request->isAjax()) { $get = $this->request->get(); return JsonServer::success('',SelectLinkLogic::getTeamGoods($get)); } } }