diff --git a/app/controller/frontend/SearchController.php b/app/controller/frontend/SearchController.php index bd6fce0..0c1d80e 100644 --- a/app/controller/frontend/SearchController.php +++ b/app/controller/frontend/SearchController.php @@ -8,6 +8,8 @@ use app\exception\ModelEmptyException; use app\model\Category; use app\model\CategorySubContent; use app\model\SubContent; +use think\Request; +use think\response\Json; class SearchController extends BaseController { @@ -92,5 +94,15 @@ class SearchController extends BaseController // var_dump(config('view.view_search_page_name'));exit; return $this->fetch(config('view.view_search_page_name')); } + + public function searchCalendar(Request $request) :Json + { + $reqParam = $request->param(); + $resData = [ + 'code'=>200, + 'data'=>[], + ]; + return json($resData); + } } diff --git a/route/1_zh_frontend.php b/route/1_zh_frontend.php new file mode 100644 index 0000000..b0245fa --- /dev/null +++ b/route/1_zh_frontend.php @@ -0,0 +1,1481 @@ +name('List/index?id=149')->append(array('id' => '149',)); + +Route::get('/', 'List/index')->name('List/index?id=149')->append(array('id' => '149',)); + +Route::get('/gotogw', 'List/index')->name('List/index?id=150')->append(array('id' => '150',)); + +Route::get('/gotogw/:id', 'Detail/index')->name('Detail/index?cid=150')->append(array('cid' => '150',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/qihuostudy', 'List/index')->name('List/index?id=151')->append(array('id' => '151',)); + +Route::get('/qihuostudy/:id', 'Detail/index')->name('Detail/index?cid=151')->append(array('cid' => '151',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/scgc', 'List/index')->name('List/index?id=157')->append(array('id' => '157',)); + +Route::get('/scgc/:id', 'Detail/index')->name('Detail/index?cid=157')->append(array('cid' => '157',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/pzzp', 'List/index')->name('List/index?id=158')->append(array('id' => '158',)); + +Route::get('/pzzp/:id', 'Detail/index')->name('Detail/index?cid=158')->append(array('cid' => '158',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/xsrm', 'List/index')->name('List/index?id=159')->append(array('id' => '159',)); + +Route::get('/xsrm/:id', 'Detail/index')->name('Detail/index?cid=159')->append(array('cid' => '159',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/qhzs', 'List/index')->name('List/index?id=160')->append(array('id' => '160',)); + +Route::get('/qhzs/:id', 'Detail/index')->name('Detail/index?cid=160')->append(array('cid' => '160',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/pzzn', 'List/index')->name('List/index?id=161')->append(array('id' => '161',)); + +Route::get('/pzzn/:id', 'Detail/index')->name('Detail/index?cid=161')->append(array('cid' => '161',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/jygz', 'List/index')->name('List/index?id=162')->append(array('id' => '162',)); + +Route::get('/jygz/:id', 'Detail/index')->name('Detail/index?cid=162')->append(array('cid' => '162',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/zbhk', 'List/index')->name('List/index?id=163')->append(array('id' => '163',)); + +Route::get('/zbhk/:id', 'Detail/index')->name('Detail/index?cid=163')->append(array('cid' => '163',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/tzjq', 'List/index')->name('List/index?id=164')->append(array('id' => '164',)); + +Route::get('/tzjq/:id', 'Detail/index')->name('Detail/index?cid=164')->append(array('cid' => '164',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/tzzsdxyd', 'List/index')->name('List/index?id=167')->append(array('id' => '167',)); + +Route::get('/tzzsdxyd/:id', 'Detail/index')->name('Detail/index?cid=167')->append(array('cid' => '167',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/fxqxc', 'List/index')->name('List/index?id=168')->append(array('id' => '168',)); + +Route::get('/fxqxc/:id', 'Detail/index')->name('Detail/index?cid=168')->append(array('cid' => '168',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/gpzsb', 'List/index')->name('List/index?id=169')->append(array('id' => '169',)); + +Route::get('/gpzsb/:id', 'Detail/index')->name('Detail/index?cid=169')->append(array('cid' => '169',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/djzl', 'List/index')->name('List/index?id=154')->append(array('id' => '154',)); + +Route::get('/djzl/:id', 'Detail/index')->name('Detail/index?cid=154')->append(array('cid' => '154',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/sjkhjywbl', 'List/index')->name('List/index?id=171')->append(array('id' => '171',)); + +Route::get('/sjkhjywbl/:id', 'Detail/index')->name('Detail/index?cid=171')->append(array('cid' => '171',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/hlwkhjywbl', 'List/index')->name('List/index?id=172')->append(array('id' => '172',)); + +Route::get('/hlwkhjywbl/:id', 'Detail/index')->name('Detail/index?cid=172')->append(array('cid' => '172',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/yjlc', 'List/index')->name('List/index?id=174')->append(array('id' => '174',)); + +Route::get('/yjlc/:id', 'Detail/index')->name('Detail/index?cid=174')->append(array('cid' => '174',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/cjwt', 'List/index')->name('List/index?id=175')->append(array('id' => '175',)); + +Route::get('/cjwt/:id', 'Detail/index')->name('Detail/index?cid=175')->append(array('cid' => '175',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/wsjy', 'List/index')->name('List/index?id=176')->append(array('id' => '176',)); + +Route::get('/wsjy/:id', 'Detail/index')->name('Detail/index?cid=176')->append(array('cid' => '176',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/contact_us', 'List/index')->name('List/index?id=156')->append(array('id' => '156',)); + +Route::get('/yykh', 'List/index')->name('List/index?id=177')->append(array('id' => '177',)); + +Route::get('/ccqhgfyxgs', 'List/index')->name('List/index?id=178')->append(array('id' => '178',)); + +Route::get('/qyxcp', 'List/index')->name('List/index?id=180')->append(array('id' => '180',)); + +Route::get('/qyxcp/:id', 'Detail/index')->name('Detail/index?cid=180')->append(array('cid' => '180',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/qyls', 'List/index')->name('List/index?id=181')->append(array('id' => '181',)); + +Route::get('/qyls/:id', 'Detail/index')->name('Detail/index?cid=181')->append(array('cid' => '181',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/zzjg', 'List/index')->name('List/index?id=182')->append(array('id' => '182',)); + +Route::get('/zzjg/:id', 'Detail/index')->name('Detail/index?cid=182')->append(array('cid' => '182',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/tzzjy', 'List/index')->name('List/index?id=165')->append(array('id' => '165',)); + +Route::get('/tzzjy/:id', 'Detail/index')->name('Detail/index?cid=165')->append(array('cid' => '165',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/ffxc', 'List/index')->name('List/index?id=166')->append(array('id' => '166',)); + +Route::get('/ffxc/:id', 'Detail/index')->name('Detail/index?cid=166')->append(array('cid' => '166',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/djhd', 'List/index')->name('List/index?id=170')->append(array('id' => '170',)); + +Route::get('/djhd/:id', 'Detail/index')->name('Detail/index?cid=170')->append(array('cid' => '170',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/tlwzy', 'List/index')->name('List/index?id=184')->append(array('id' => '184',)); + +Route::get('/tlwzy/:id', 'Detail/index')->name('Detail/index?cid=184')->append(array('cid' => '184',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/xwzx', 'List/index')->name('List/index?id=186')->append(array('id' => '186',)); + +Route::get('/xwzx/:id', 'Detail/index')->name('Detail/index?cid=186')->append(array('cid' => '186',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/gstz', 'List/index')->name('List/index?id=187')->append(array('id' => '187',)); + +Route::get('/gstz/:id', 'Detail/index')->name('Detail/index?cid=187')->append(array('cid' => '187',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/gshd', 'List/index')->name('List/index?id=188')->append(array('id' => '188',)); + +Route::get('/gshd/:id', 'Detail/index')->name('Detail/index?cid=188')->append(array('cid' => '188',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/scrd', 'List/index')->name('List/index?id=189')->append(array('id' => '189',)); + +Route::get('/scrd/:id', 'Detail/index')->name('Detail/index?cid=189')->append(array('cid' => '189',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/qhxy', 'List/index')->name('List/index?id=153')->append(array('id' => '153',)); + +Route::get('/qhxy/:id', 'Detail/index')->name('Detail/index?cid=153')->append(array('cid' => '153',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/jysgg', 'List/index')->name('List/index?id=190')->append(array('id' => '190',)); + +Route::get('/jysgg/:id', 'Detail/index')->name('Detail/index?cid=190')->append(array('cid' => '190',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/service', 'List/index')->name('List/index?id=155')->append(array('id' => '155',)); + +Route::get('/service/:id', 'Detail/index')->name('Detail/index?cid=155')->append(array('cid' => '155',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/rjxz', 'List/index')->name('List/index?id=173')->append(array('id' => '173',)); + +Route::get('/rjxz/:id', 'Detail/index')->name('Detail/index?cid=173')->append(array('cid' => '173',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/gsjj', 'List/index')->name('List/index?id=179')->append(array('id' => '179',)); + +Route::get('/gsjj/:id', 'Detail/index')->name('Detail/index?cid=179')->append(array('cid' => '179',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/fzjg', 'List/index')->name('List/index?id=195')->append(array('id' => '195',)); + +Route::get('/fzjg/:id', 'Detail/index')->name('Detail/index?cid=195')->append(array('cid' => '195',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/data_center', 'List/index')->name('List/index?id=152')->append(array('id' => '152',)); + +Route::get('/data_center/:id', 'Detail/index')->name('Detail/index?cid=152')->append(array('cid' => '152',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/dbgslxxx', 'List/index')->name('List/index?id=198')->append(array('id' => '198',)); + +Route::get('/fxts', 'List/index')->name('List/index?id=199')->append(array('id' => '199',)); + +Route::get('/fxts/:id', 'Detail/index')->name('Detail/index?cid=199')->append(array('cid' => '199',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/khxz', 'List/index')->name('List/index?id=200')->append(array('id' => '200',)); + +Route::get('/khxz/:id', 'Detail/index')->name('Detail/index?cid=200')->append(array('cid' => '200',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/dhwt', 'List/index')->name('List/index?id=201')->append(array('id' => '201',)); + +Route::get('/dhwt/:id', 'Detail/index')->name('Detail/index?cid=201')->append(array('cid' => '201',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/zjcq', 'List/index')->name('List/index?id=202')->append(array('id' => '202',)); + +Route::get('/zjcq/:id', 'Detail/index')->name('Detail/index?cid=202')->append(array('cid' => '202',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/yqzy', 'List/index')->name('List/index?id=203')->append(array('id' => '203',)); + +Route::get('/yqzy/:id', 'Detail/index')->name('Detail/index?cid=203')->append(array('cid' => '203',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/sjkzgx', 'List/index')->name('List/index?id=204')->append(array('id' => '204',)); + +Route::get('/sjkzgx/:id', 'Detail/index')->name('Detail/index?cid=204')->append(array('cid' => '204',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/sjfx', 'List/index')->name('List/index?id=205')->append(array('id' => '205',)); + +Route::get('/sjfx/:id', 'Detail/index')->name('Detail/index?cid=205')->append(array('cid' => '205',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/yhzz', 'List/index')->name('List/index?id=206')->append(array('id' => '206',)); + +Route::get('/yhzz/:id', 'Detail/index')->name('Detail/index?cid=206')->append(array('cid' => '206',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/qhjygz', 'List/index')->name('List/index?id=207')->append(array('id' => '207',)); + +Route::get('/qhjygz/:id', 'Detail/index')->name('Detail/index?cid=207')->append(array('cid' => '207',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/qhpzjysj', 'List/index')->name('List/index?id=208')->append(array('id' => '208',)); + +Route::get('/qhpzjysj/:id', 'Detail/index')->name('Detail/index?cid=208')->append(array('cid' => '208',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/gzjg', 'List/index')->name('List/index?id=209')->append(array('id' => '209',)); + +Route::get('/gzjg/:id', 'Detail/index')->name('Detail/index?cid=209')->append(array('cid' => '209',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/qhjjhtwb', 'List/index')->name('List/index?id=210')->append(array('id' => '210',)); + +Route::get('/qhjjhtwb/:id', 'Detail/index')->name('Detail/index?cid=210')->append(array('cid' => '210',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/sbf', 'List/index')->name('List/index?id=211')->append(array('id' => '211',)); + +Route::get('/sbf/:id', 'Detail/index')->name('Detail/index?cid=211')->append(array('cid' => '211',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/hyzq', 'List/index')->name('List/index?id=212')->append(array('id' => '212',)); + +Route::get('/hyzq/:id', 'Detail/index')->name('Detail/index?cid=212')->append(array('cid' => '212',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/zxdz', 'List/index')->name('List/index?id=213')->append(array('id' => '213',)); + +Route::get('/zxdz/:id', 'Detail/index')->name('Detail/index?cid=213')->append(array('cid' => '213',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/hqtj', 'List/index')->name('List/index?id=214')->append(array('id' => '214',)); + +Route::get('/hqtj/:id', 'Detail/index')->name('Detail/index?cid=214')->append(array('cid' => '214',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/mrtx', 'List/index')->name('List/index?id=191')->append(array('id' => '191',)); + +Route::get('/mrtx/:id', 'Detail/index')->name('Detail/index?cid=191')->append(array('cid' => '191',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + + + + + +// 前台公共路由 + +// 询盘提交 + +Route::post('inquiry/save', 'Inquiry/save'); + + + +// 标签 + +Route::get('/tag', 'Tag/index'); + + + +Route::get('/tag/:name', 'Tag/index')->name('Tag/index') + + ->pattern(array('name' => '[a-zA-Z]{1,1}+')); + +Route::get('/tagList/:id', 'List/tag')->name('List/tag') + + ->pattern(array('id' => '\d+')); + + + +// 搜索 + +Route::get('/search', 'Search/index'); + +// 交易及市场日历(calendar) +Route::get('/calendar/article-detail', 'Search/searchCalendar'); + + + +// 表单 + +Route::get('/c/:code', 'Form/index')->name('Form/index') + + ->pattern(array('code' => '\w+')); + +Route::post('/addFormData', 'Form/save'); + +Route::post('/uploadFormFile', 'Form/uploadFormFile'); + + +Route::get('/down/:id', 'Form/downFile')->name('Form/downFile') + + ->pattern(array('id' => '\d+')); + + + +Route::get('/design/index', 'Design/index'); + +Route::get('/design/getDesignHtml', 'Design/getDesignHtml'); + +Route::get('/preview','Detail/preview'); + + + +Route::get('/robots.txt','Seo/getRobots'); + +Route::get('/sitemap.xml','Seo/getSitemapXml'); + +Route::get('/sitemap','Seo/getSitemapHtml'); + +Route::get('/404','Inquiry/404'); + +})->prefix('frontend.'); + + + + +// 后台路由 + +Route::group(function () { + + Route::group(function () { + + // 安装 + + Route::get('/install', '/index'); + + Route::get('/install_monitor', '/monitor'); + + Route::get('/install_configure', '/configure'); + + Route::post('/install_create', '/create'); + + Route::any('/install_exec', '/install'); + + Route::get('/install_check', '/installCompleteCheck'); + + Route::get('/install_done_complete', '/completeCheck'); + + Route::post('/install_testPass', '/testPass'); + + Route::get('/install_complete', '/complete'); + + Route::post('/install_user_check', '/userCheck'); + + + + })->prefix(config('route.admin') . '.systemInstall'); + + // 登录注册 + + Route::post('/account/login', config('route.admin') . '.account/login'); + + Route::post('/account/authCode', config('route.admin') . '.account/authCode'); + + + + Route::group(function () { + + + + // 管理员管理 + + Route::group('admin', function () { + + Route::post('/save', '/save'); + + Route::get('/index', '/index'); + + Route::get('/read', '/read'); + + Route::post('/update', '/update'); + + Route::post('/delete', '/delete'); + + // 当前管理员权限 + + Route::get('/self', '/self'); + + // 当前管理员权限 + + Route::post('/selfUpdate', '/selfUpdate'); + + Route::get('current', '/current'); + + + + })->prefix(config('route.admin') . '.admin'); + + + + // 角色管理 + + Route::group('role', function () { + + Route::post('/save', '/save'); + + Route::get('/index', '/index'); + + Route::get('/read', '/read'); + + Route::post('/update', '/update'); + + Route::post('/delete', '/delete'); + + // 所有权限 + + Route::get('/getAuth', '/getAuth'); + + Route::get('/getMenuAndUpdateAuth', '/getMenuAndUpdateAuth'); + + })->prefix(config('route.admin') . '.role'); + + + + // 网站管理 + + Route::group('website',function(){ + + Route::post('/save','/save'); + + Route::get('/index','/index'); + + Route::post('/update','/update'); + + Route::post('/delete','/delete'); + + Route::post('/sitemap','/sitemap'); + + Route::post('/setStatus','/setStatus'); + + })->prefix(config('route.admin').'.website'); + + + + // 模型管理 + + Route::group('module', function () { + + Route::post('/save', '/save'); + + Route::get('/index', '/index'); + + Route::get('/read', '/read'); + + Route::post('/update', '/update'); + + Route::post('/delete', '/delete'); + + // 所有模型 + + Route::get('/all', '/all'); + + Route::get('/field', '/field'); + + })->prefix(config('route.admin') . '.module'); + + + + // 模型字段管理 + + Route::group('moduleField', function () { + + Route::post('/save', '/save'); + + Route::get('/index', '/index'); + + Route::get('/read', '/read'); + + Route::post('/update', '/update'); + + Route::post('/delete', '/delete'); + + Route::get('/list', '/list'); + + Route::get('/relationValueList','/getRelationFieldListValue'); + + + + })->prefix(config('route.admin') . '.moduleField'); + + + + // 栏目管理 + + Route::group('category', function () { + + Route::post('/save', '/save'); + + Route::get('/index', '/index'); + + Route::get('/read', '/read'); + + Route::post('/update', '/update'); + + Route::post('/delete', '/delete'); + + // 模型下的所有栏目 + + Route::get('/getModuleCate', '/getModuleCate'); + + // 栏目复制 + + Route::post('/copy', '/copy'); + + // 栏目状态修改 + + Route::post('updateStatus', '/updateStatus'); + + + + })->prefix(config('route.admin') . '.category'); + + + + // 前台导航分类管理 + + Route::group('navCate', function () { + + Route::post('/save', '/save'); + + Route::get('/index', '/index'); + + Route::get('/read', '/read'); + + Route::post('/update', '/update'); + + Route::post('/delete', '/delete'); + + })->prefix(config('route.admin') . '.navCate'); + + + + // 前台导航管理 + + Route::group('nav', function () { + + Route::post('/save', '/save'); + + Route::get('/index', '/index'); + + Route::get('/read', '/read'); + + Route::post('/update', '/update'); + + Route::post('/delete', '/delete'); + + Route::post('/batchCreate','/batchCreate'); + + Route::post('/updateStatus', '/updateStatus'); + + })->prefix(config('route.admin') . '.nav'); + + + + // 内容管理 + + Route::group('content', function () { + + Route::post('/save', '/save'); + + Route::get('/index', '/index'); + + Route::get('/read', '/read'); + + Route::post('/update', '/update'); + + Route::post('/delete', '/delete'); + + // 获取新增内容字段 + + Route::get('/create', '/create'); + + // 获取副表内容 + + Route::get('/mainContent', '/mainContent'); + + // 置顶 取消置顶 推荐 取消推荐 + + Route::post('/topOpt', '/topOpt'); + + Route::post('/recommendAndStatus', '/recommendAndStatus'); + + // 内链添加 + + Route::post('/addInnerChat', '/addInnerChat'); + + // 图片本地化 + + Route::post('/imgLocal', '/imgLocal'); + + // 简介提取 + + Route::post('/descExtraction', '/descExtraction'); + + // 文章上传 + + Route::post('/articleUpload', '/articleUpload'); + + // 模型内容 + + Route::get('/moduleContent', '/moduleContent'); + + // 违禁词查询 + + Route::post('/wordSearch', '/wordSearch'); + + + + //审核列表 + + Route::get('/checkList', '/checkList'); + + //回收站列表 + + Route::get('/recycleBinList', '/recycleBinList'); + + //审核 + + Route::post('/checkAll', '/checkAll'); + + //修改状态 + + Route::post('/editStatus', '/editStatus'); + + Route::post('/delAll', '/delAll'); + + Route::post('/recoverAll', '/recoverAll'); + + // 导入excel文章列表 + + Route::post('/importExcel', '/importExcel'); + + // 数据处理, 输入导入 ==================================================== STRT + + Route::post('/dealDataToNew', '/dealDataToNew'); + + // 数据处理, 输入导入 ==================================================== END + + + })->prefix(config('route.admin') . '.content'); + + // 标签管理 + + Route::group('tag', function () { + + Route::post('/save', '/save'); + + Route::get('/backendIndex', '/index'); + + Route::post('/update', '/update'); + + Route::post('/delete', '/delete'); + + })->prefix(config('route.admin') . '.tag'); + + + + // 友情链接管理 + + Route::group('link', function () { + + Route::post('/save', '/save'); + + Route::get('/index', '/index'); + + Route::get('/read', '/read'); + + Route::post('/update', '/update'); + + Route::post('/delete', '/delete'); + + // 复制其他站点友情链接 + + Route::post('/copy', '/link'); + + })->prefix(config('route.admin') . '.link'); + + + + // sysSetting + + Route::group('sysSetting', function () { + + Route::get('/index', '/index'); + + Route::post('/update', '/update'); + + Route::post('/emailClear', '/emailClear'); + + Route::post('/clearCache', '/clearCache'); + + Route::post('/password', '/password'); + + Route::get('/passInfo', '/passInfo'); + + + + })->prefix(config('route.admin') . '.sysSetting'); + + + + // 后台菜单管理 + + Route::group('adminMenu', function () { + + Route::post('/save', '/save'); + + Route::get('/index', '/index'); + + Route::post('/update', '/update'); + + Route::post('/delete', '/delete'); + + Route::post('/updateMenuStatus', '/updateMenuStatus'); + + Route::get('/getUserMenuList', '/getUserMenuList'); //得到当前 + + Route::get('/getDynamicMenu', '/getDynamicMenu'); //得到动态路由 + + })->prefix(config('route.admin') . '.adminMenu'); + + + + // 日志管理 + + Route::get('/adminLoginLog/index', config('route.admin') . '.adminLoginLog/index'); + + Route::get('/adminOptLog/index', config('route.admin') . '.adminOptLog/index'); + + Route::post('/adminOptLog/delete', config('route.admin') . '.adminOptLog/delete'); + + Route::post('/adminLoginLog/delete', config('route.admin') . '.adminLoginLog/delete'); + + + + // 网站配置 + + Route::group('websiteSetting', function () { + + Route::get('/read', '/read'); + + Route::post('/update', '/update'); + + })->prefix(config('route.admin') . '.websiteSetting'); + + + + // 网站配置 + + // 基本配置 + + Route::group('websiteSetting', function () { + + Route::get('/read', '/read'); + + Route::post('/update', '/update'); + + })->prefix(config('route.admin') . '.websiteSetting'); + + // 语言配置 + + Route::group('websiteLang', function () { + + Route::get('/system', '/system'); + + Route::get('/index', '/index'); + + Route::post('/save', '/save'); + + Route::post('/changeLang', '/changeLang'); + + })->prefix(config('route.admin') . '.websiteLang'); + + // 服务器配置 + + Route::group('websiteServer', function () { + + Route::post('/save', '/save'); + + Route::get('/read', '/read'); + + Route::post('/update', '/update'); + + })->prefix(config('route.admin') . '.websiteServer'); + + + + // 数据库备份 + + Route::group('database', function () { + + Route::post('/backup', '/backup'); + + Route::post('/restore', '/restore'); + + Route::get('/tableList', '/tableList'); + + Route::get('/index', '/index'); + + Route::post('/delete', '/delete'); + + })->prefix(config('route.admin') . '.database'); + + + + // 回收站管理 + + Route::group('recycleBin', function () { + + Route::post('/save', '/save'); + + Route::get('/index', '/index'); + + Route::post('/clean', '/clean'); + + Route::post('/delete', '/delete'); + + Route::post('/restore', '/restore'); + + Route::post('/allRestore', '/allRestore'); + + })->prefix(config('route.admin') . '.recycleBin'); + + + + // 网站模版管理 + + Route::group('theme', function () { + + Route::get('/install', '/install'); + + Route::post('/installTheme', '/installTheme'); + + Route::get('/index', '/index'); + + Route::post('/active', '/active'); + + Route::post('/update', '/update'); + + Route::post('/uninstall', '/uninstall'); + + Route::get('/allFilePath', '/allFilePath'); + + Route::get('/allFiles', '/allFiles'); + + Route::get('/tmpFile', '/tmpFile'); + + Route::post('/delete', '/delete'); + + Route::get('/templateFile', '/templateFile'); + + })->prefix(config('route.admin') . '.theme'); + + + + // 模版文件管理 + + Route::group('themeFile', function () { + + Route::post('/design', '/design'); + + Route::get('/index', '/index'); + + Route::get('/read', '/read'); + + Route::post('/update', '/update'); + + Route::get('/active', '/active'); + + + + Route::post('/singleUpdate', '/singleUpdate'); + + + + })->prefix(config('route.admin') . '.themeFile'); + + + + // 附件管理 + + Route::group('attachment', function () { + + Route::post('/save', '/save'); + + Route::get('/index', '/index'); + + Route::post('/uploadAndSave', '/uploadAndSave'); + + Route::post('/update', '/update'); + + Route::post('/delete', '/delete'); + + Route::post('/sliceUploadAndSave', '/sliceUploadAndSave'); + + Route::post('/editFileUrl', '/editFileUrl'); + + })->prefix(config('route.admin') . '.attachment'); + + + + // 附件分类管理 + + Route::group('attachmentCate', function () { + + Route::post('/save', '/save'); + + Route::get('/index', '/index'); + + Route::post('/update', '/update'); + + Route::post('/delete', '/delete'); + + })->prefix(config('route.admin') . '.attachmentCate'); + + + + // 询盘管理 + + Route::group('inquiry', function () { + + Route::post('/backendSave', '/backendSave'); + + Route::get('/index', '/index'); + + Route::get('/read', '/read'); + + Route::post('/update', '/update'); + + Route::post('/delete', '/delete'); + + Route::post('/exportInquiry', '/exportInquiry'); + + })->prefix(config('route.admin') . '.inquiry'); + + + + // 询盘分类管理 + + Route::group('inquiryCategory', function () { + + Route::post('/save', '/save'); + + Route::get('/index', '/index'); + + Route::get('/read', '/read'); + + Route::post('/update', '/update'); + + Route::post('/delete', '/delete'); + + })->prefix(config('route.admin') . '.inquiryCategory'); + + + + // 询盘收件箱 + + Route::group('inquiryEmail', function () { + + Route::post('/save', '/save'); + + Route::get('/index', '/index'); + + Route::get('/read', '/read'); + + Route::post('/update', '/update'); + + Route::post('/delete', '/delete'); + + })->prefix(config('route.admin') . '.inquiryEmail'); + + + + // 关键词管理 + + Route::group('keyword', function () { + + Route::post('/save', '/save'); + + Route::get('/index', '/index'); + + Route::get('/read', '/read'); + + Route::post('/update', '/update'); + + Route::post('/delete', '/delete'); + + Route::post('/import', '/import'); + + Route::get('/template', '/template'); + + Route::get('/monitor', '/monitor'); + + Route::get('/echarts', '/echarts'); + + Route::post('/updateRank', '/updateRank'); + + })->prefix(config('route.admin') . '.keyword'); + + // 关键词管理 + + Route::group('keywordQuery', function () { + + // 关键词监控 + + Route::get('/index', '/index'); + + Route::post('/save', '/save'); + + Route::get('/list', '/list'); + + })->prefix(config('route.admin') . '.keywordQuery'); + + + + // 内链管理 + + Route::group('innerChart', function () { + + Route::post('/save', '/save'); + + Route::get('/index', '/index'); + + Route::get('/read', '/read'); + + Route::post('/update', '/update'); + + Route::post('/delete', '/delete'); + + })->prefix(config('route.admin') . '.innerChart'); + + + + // 广告管理 + + Route::group('advertisement', function () { + + Route::post('/save', '/save'); + + Route::get('/index', '/index'); + + Route::get('/read', '/read'); + + Route::post('/update', '/update'); + + Route::post('/delete', '/delete'); + + })->prefix(config('route.admin') . '.advertisement'); + + + + // 友情链接管理 + + Route::group('link', function () { + + Route::post('/save', '/save'); + + Route::get('/index', '/index'); + + Route::get('/read', '/read'); + + Route::post('/update', '/update'); + + Route::post('/delete', '/delete'); + + })->prefix(config('route.admin') . '.link'); + + + + //seo账号管理 + + Route::group('seoAccount',function(){ + + Route::get('/lists','/lists'); + + Route::post('/add','/add'); + + Route::post('/edit','/edit'); + + Route::get('/info','/info'); + + Route::post('/del','/del'); + + })->prefix(config('route.admin').'.seoAccount'); + + + + //SEO + + Route::group('seo',function(){ + + Route::get('/baidu','/baidu'); // 百度昨日总统计+账号列表 + + })->prefix(config('route.admin').'.seo'); + + + + // 百度统计 + + Route::group('statistics', function () { + + Route::get('/lists', '/lists'); // 站点列表 + + Route::get('/age', '/age'); // 访问者年龄 + + Route::get('/outline', '/outline'); // 今日昨日浏览量分析 + + Route::get('/qxt', '/qxt'); // 趋势图 + + Route::get('/search_word', '/search_word'); // 关键词消费排名 + + Route::get('/get_common_track_rpt', '/get_common_track_rpt'); // 网站概况(来源网站、搜索词、入口页面、受访页面、新老访客) + + Route::get('/area', '/area'); // 网站概况(地域分布) + + Route::get('/area_top', '/area_top'); // 网站概况(地域分布Top10) + + + + + + Route::get('/indexLists', '/indexLists'); // 首页浏览量统计 + + Route::get('/indexQST', '/indexQST'); // 首页趋势图 + + Route::get('/indexArea', '/indexArea'); // 首页地区分布图 + + + + })->prefix(config('route.admin') . '.statistics'); + + // 谷歌统计 + + + + + + // 职位管理 + + Route::group('job', function () { + + Route::post('/save', '/save'); + + Route::get('/index', '/index'); + + Route::get('/read', '/read'); + + Route::post('/update', '/update'); + + Route::post('/delete', '/delete'); + + })->prefix(config('route.admin') . '.job'); + + + + // 职位分类管理 + + Route::group('jobCate', function () { + + Route::post('/save', '/save'); + + Route::get('/index', '/index'); + + Route::get('/read', '/read'); + + Route::post('/update', '/update'); + + Route::post('/delete', '/delete'); + + })->prefix(config('route.admin') . '.jobCate'); + + + + // 职位城市管理 + + Route::group('jobCity', function () { + + Route::post('/save', '/save'); + + Route::get('/index', '/index'); + + Route::get('/read', '/read'); + + Route::post('/update', '/update'); + + Route::post('/delete', '/delete'); + + })->prefix(config('route.admin') . '.jobCity'); + + + + // 文件上传 + + Route::post('/upload/save', config('route.admin') . '.Upload/save'); + + // 控制面板 + + Route::get('/dashboard/index', config('route.admin') . '.dashboard/index'); + + + + // 幻灯片分类 + + Route::group('slideCate', function () { + + Route::post('/save', '/save'); + + Route::get('/index', '/index'); + + Route::get('/read', '/read'); + + Route::post('/update', '/update'); + + Route::post('/delete', '/delete'); + + })->prefix(config('route.admin') . '.slideCate'); + + // 幻灯片列表 + + Route::group('slide', function () { + + Route::post('/save', '/save'); + + Route::get('/index', '/index'); + + Route::get('/read', '/read'); + + Route::post('/update', '/update'); + + Route::post('/delete', '/delete'); + + })->prefix(config('route.admin') . '.slide'); + + + + // 表单管理 + + Route::group('form', function () { + + Route::post('/add', '/add'); + + Route::get('/info', '/info'); + + Route::get('/index', '/index'); + + Route::post('/edit', '/edit'); + + Route::get('/del', '/del'); + + Route::post('/design', '/design'); + + Route::get('/detail', '/detail'); + + Route::get('/deploy', '/deploy'); + + Route::get('/undeploy', '/undeploy'); + + Route::get('/quesDetail', '/quesDetail'); + + Route::post('/exportForm', '/exportForm'); + + })->prefix(config('route.admin') . '.form'); + + + + // 封面管理 + + Route::group('material', function () { + + Route::post('/add', '/add'); + + Route::post('/upload', '/upload'); + + Route::get('/index', '/index'); + + Route::post('/del', '/del'); + + })->prefix(config('route.admin') . '.material'); + + + + // 海报管理 + + Route::group('poster', function () { + + Route::post('/preview', '/preview'); + + Route::get('/index', '/index'); + + Route::post('/add', '/add'); + + Route::get('/edit', '/edit'); + + Route::post('/copy', '/copy'); + + Route::post('/del', '/del'); + + })->prefix(config('route.admin') . '.poster'); + + + + // seo诊断 + + Route::group('SeoCheck', function () { + + Route::get('/index', '/index'); + + Route::post('/start', '/start'); + + Route::post('/check', '/check'); + + Route::post('/del', '/del'); + + })->prefix(config('route.admin') . '.SeoCheck'); + + + + Route::group('Design', function () { + + Route::get('/getLinkList', '/getLinkList'); + + Route::post('/save', '/save'); + + Route::post('/publish', '/publish'); + + Route::get('/getCategoryList', '/getCategoryList'); + + Route::get('/getCategoryData', '/getCategoryData'); + + Route::get('/history', '/getHistoryList'); + + Route::post('/setPreviewPage', '/setPreviewPage'); + + + + })->prefix(config('route.admin') . '.Design'); + + + + Route::group('Plugin', function () { + + Route::get('/list', '/index'); + + Route::post('/install', '/install'); + + Route::post('/uninstall', '/uninstall'); + + Route::post('/editStatus', '/editStatus'); + + })->prefix(config('route.admin') . '.Plugin'); + + + + Route::group('StaticFile', function () { + + Route::post('/updateCategoryCache', '/updateCategoryCache'); + + Route::post('/createCategory', '/createCategory'); + + Route::post('/createContent', '/createContent'); + + })->prefix(config('route.admin') . '.StaticFile'); + + + + Route::group('ContentImport', function () { + + // 手续费 + + Route::post('/commission', '/commission'); + + // 保证金 + + Route::post('/margin', '/margin'); + + // 交易品种 + + Route::post('/variety', '/variety'); + + // 交易规则 + + Route::post('/rule', '/rule'); + + // 交易日历 + + Route::post('/calendar', '/calendar'); + + // 居间人 + + Route::post('/intermediary', '/intermediary'); + + + + })->prefix(config('route.admin') . '.custom.ContentImport'); + + + + })->middleware('login'); + + + + //询盘导出的内容下载 + + Route::get('/excel/downInquiryExcel', config('route.admin') . '.excel/downInquiryExcel'); + +}); + + + +Route::miss(function () { + + if (!hcInstalled()) { + + return redirect('/install'); + + } + + if(request()->isJson()){ + + throw new \app\exception\RouteMissException(); + + }else{ + + throw new \think\exception\HttpException(404); + + } + +}); + + + + + +}); + diff --git a/route/1_zh_plugin_api.php b/route/1_zh_plugin_api.php new file mode 100644 index 0000000..faab131 --- /dev/null +++ b/route/1_zh_plugin_api.php @@ -0,0 +1,52 @@ +middleware('login'); + +}); +}); + diff --git a/route/2_zh_frontend.php b/route/2_zh_frontend.php new file mode 100644 index 0000000..1d5a22f --- /dev/null +++ b/route/2_zh_frontend.php @@ -0,0 +1,1486 @@ +name('List/index?id=149')->append(array('id' => '149',)); + +Route::get('/', 'List/index')->name('List/index?id=149')->append(array('id' => '149',)); + +Route::get('/gotogw', 'List/index')->name('List/index?id=150')->append(array('id' => '150',)); + +Route::get('/gotogw/:id', 'Detail/index')->name('Detail/index?cid=150')->append(array('cid' => '150',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/qihuostudy', 'List/index')->name('List/index?id=151')->append(array('id' => '151',)); + +Route::get('/qihuostudy/:id', 'Detail/index')->name('Detail/index?cid=151')->append(array('cid' => '151',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/scgc', 'List/index')->name('List/index?id=157')->append(array('id' => '157',)); + +Route::get('/scgc/:id', 'Detail/index')->name('Detail/index?cid=157')->append(array('cid' => '157',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/pzzp', 'List/index')->name('List/index?id=158')->append(array('id' => '158',)); + +Route::get('/pzzp/:id', 'Detail/index')->name('Detail/index?cid=158')->append(array('cid' => '158',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/xsrm', 'List/index')->name('List/index?id=159')->append(array('id' => '159',)); + +Route::get('/xsrm/:id', 'Detail/index')->name('Detail/index?cid=159')->append(array('cid' => '159',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/qhzs', 'List/index')->name('List/index?id=160')->append(array('id' => '160',)); + +Route::get('/qhzs/:id', 'Detail/index')->name('Detail/index?cid=160')->append(array('cid' => '160',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/pzzn', 'List/index')->name('List/index?id=161')->append(array('id' => '161',)); + +Route::get('/pzzn/:id', 'Detail/index')->name('Detail/index?cid=161')->append(array('cid' => '161',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/jygz', 'List/index')->name('List/index?id=162')->append(array('id' => '162',)); + +Route::get('/jygz/:id', 'Detail/index')->name('Detail/index?cid=162')->append(array('cid' => '162',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/zbhk', 'List/index')->name('List/index?id=163')->append(array('id' => '163',)); + +Route::get('/zbhk/:id', 'Detail/index')->name('Detail/index?cid=163')->append(array('cid' => '163',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/tzjq', 'List/index')->name('List/index?id=164')->append(array('id' => '164',)); + +Route::get('/tzjq/:id', 'Detail/index')->name('Detail/index?cid=164')->append(array('cid' => '164',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/tzzsdxyd', 'List/index')->name('List/index?id=167')->append(array('id' => '167',)); + +Route::get('/tzzsdxyd/:id', 'Detail/index')->name('Detail/index?cid=167')->append(array('cid' => '167',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/fxqxc', 'List/index')->name('List/index?id=168')->append(array('id' => '168',)); + +Route::get('/fxqxc/:id', 'Detail/index')->name('Detail/index?cid=168')->append(array('cid' => '168',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/gpzsb', 'List/index')->name('List/index?id=169')->append(array('id' => '169',)); + +Route::get('/gpzsb/:id', 'Detail/index')->name('Detail/index?cid=169')->append(array('cid' => '169',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/djzl', 'List/index')->name('List/index?id=154')->append(array('id' => '154',)); + +Route::get('/djzl/:id', 'Detail/index')->name('Detail/index?cid=154')->append(array('cid' => '154',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/sjkhjywbl', 'List/index')->name('List/index?id=171')->append(array('id' => '171',)); + +Route::get('/sjkhjywbl/:id', 'Detail/index')->name('Detail/index?cid=171')->append(array('cid' => '171',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/hlwkhjywbl', 'List/index')->name('List/index?id=172')->append(array('id' => '172',)); + +Route::get('/hlwkhjywbl/:id', 'Detail/index')->name('Detail/index?cid=172')->append(array('cid' => '172',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/yjlc', 'List/index')->name('List/index?id=174')->append(array('id' => '174',)); + +Route::get('/yjlc/:id', 'Detail/index')->name('Detail/index?cid=174')->append(array('cid' => '174',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/cjwt', 'List/index')->name('List/index?id=175')->append(array('id' => '175',)); + +Route::get('/cjwt/:id', 'Detail/index')->name('Detail/index?cid=175')->append(array('cid' => '175',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/wsjy', 'List/index')->name('List/index?id=176')->append(array('id' => '176',)); + +Route::get('/wsjy/:id', 'Detail/index')->name('Detail/index?cid=176')->append(array('cid' => '176',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/contact_us', 'List/index')->name('List/index?id=156')->append(array('id' => '156',)); + +Route::get('/yykh', 'List/index')->name('List/index?id=177')->append(array('id' => '177',)); + +Route::get('/ccqhgfyxgs', 'List/index')->name('List/index?id=178')->append(array('id' => '178',)); + +Route::get('/qyxcp', 'List/index')->name('List/index?id=180')->append(array('id' => '180',)); + +Route::get('/qyxcp/:id', 'Detail/index')->name('Detail/index?cid=180')->append(array('cid' => '180',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/qyls', 'List/index')->name('List/index?id=181')->append(array('id' => '181',)); + +Route::get('/qyls/:id', 'Detail/index')->name('Detail/index?cid=181')->append(array('cid' => '181',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/zzjg', 'List/index')->name('List/index?id=182')->append(array('id' => '182',)); + +Route::get('/zzjg/:id', 'Detail/index')->name('Detail/index?cid=182')->append(array('cid' => '182',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/tzzjy', 'List/index')->name('List/index?id=165')->append(array('id' => '165',)); + +Route::get('/tzzjy/:id', 'Detail/index')->name('Detail/index?cid=165')->append(array('cid' => '165',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/ffxc', 'List/index')->name('List/index?id=166')->append(array('id' => '166',)); + +Route::get('/ffxc/:id', 'Detail/index')->name('Detail/index?cid=166')->append(array('cid' => '166',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/djhd', 'List/index')->name('List/index?id=170')->append(array('id' => '170',)); + +Route::get('/djhd/:id', 'Detail/index')->name('Detail/index?cid=170')->append(array('cid' => '170',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/tlwzy', 'List/index')->name('List/index?id=184')->append(array('id' => '184',)); + +Route::get('/tlwzy/:id', 'Detail/index')->name('Detail/index?cid=184')->append(array('cid' => '184',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/xwzx', 'List/index')->name('List/index?id=186')->append(array('id' => '186',)); + +Route::get('/xwzx/:id', 'Detail/index')->name('Detail/index?cid=186')->append(array('cid' => '186',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/gstz', 'List/index')->name('List/index?id=187')->append(array('id' => '187',)); + +Route::get('/gstz/:id', 'Detail/index')->name('Detail/index?cid=187')->append(array('cid' => '187',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/gshd', 'List/index')->name('List/index?id=188')->append(array('id' => '188',)); + +Route::get('/gshd/:id', 'Detail/index')->name('Detail/index?cid=188')->append(array('cid' => '188',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/scrd', 'List/index')->name('List/index?id=189')->append(array('id' => '189',)); + +Route::get('/scrd/:id', 'Detail/index')->name('Detail/index?cid=189')->append(array('cid' => '189',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/qhxy', 'List/index')->name('List/index?id=153')->append(array('id' => '153',)); + +Route::get('/qhxy/:id', 'Detail/index')->name('Detail/index?cid=153')->append(array('cid' => '153',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/jysgg', 'List/index')->name('List/index?id=190')->append(array('id' => '190',)); + +Route::get('/jysgg/:id', 'Detail/index')->name('Detail/index?cid=190')->append(array('cid' => '190',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/service', 'List/index')->name('List/index?id=155')->append(array('id' => '155',)); + +Route::get('/service/:id', 'Detail/index')->name('Detail/index?cid=155')->append(array('cid' => '155',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/rjxz', 'List/index')->name('List/index?id=173')->append(array('id' => '173',)); + +Route::get('/rjxz/:id', 'Detail/index')->name('Detail/index?cid=173')->append(array('cid' => '173',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/gsjj', 'List/index')->name('List/index?id=179')->append(array('id' => '179',)); + +Route::get('/gsjj/:id', 'Detail/index')->name('Detail/index?cid=179')->append(array('cid' => '179',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/fzjg', 'List/index')->name('List/index?id=195')->append(array('id' => '195',)); + +Route::get('/fzjg/:id', 'Detail/index')->name('Detail/index?cid=195')->append(array('cid' => '195',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/data_center', 'List/index')->name('List/index?id=152')->append(array('id' => '152',)); + +Route::get('/data_center/:id', 'Detail/index')->name('Detail/index?cid=152')->append(array('cid' => '152',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/dbgslxxx', 'List/index')->name('List/index?id=198')->append(array('id' => '198',)); + +Route::get('/fxts', 'List/index')->name('List/index?id=199')->append(array('id' => '199',)); + +Route::get('/fxts/:id', 'Detail/index')->name('Detail/index?cid=199')->append(array('cid' => '199',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/khxz', 'List/index')->name('List/index?id=200')->append(array('id' => '200',)); + +Route::get('/khxz/:id', 'Detail/index')->name('Detail/index?cid=200')->append(array('cid' => '200',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/dhwt', 'List/index')->name('List/index?id=201')->append(array('id' => '201',)); + +Route::get('/dhwt/:id', 'Detail/index')->name('Detail/index?cid=201')->append(array('cid' => '201',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/zjcq', 'List/index')->name('List/index?id=202')->append(array('id' => '202',)); + +Route::get('/zjcq/:id', 'Detail/index')->name('Detail/index?cid=202')->append(array('cid' => '202',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/yqzy', 'List/index')->name('List/index?id=203')->append(array('id' => '203',)); + +Route::get('/yqzy/:id', 'Detail/index')->name('Detail/index?cid=203')->append(array('cid' => '203',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/sjkzgx', 'List/index')->name('List/index?id=204')->append(array('id' => '204',)); + +Route::get('/sjkzgx/:id', 'Detail/index')->name('Detail/index?cid=204')->append(array('cid' => '204',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/sjfx', 'List/index')->name('List/index?id=205')->append(array('id' => '205',)); + +Route::get('/sjfx/:id', 'Detail/index')->name('Detail/index?cid=205')->append(array('cid' => '205',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/yhzz', 'List/index')->name('List/index?id=206')->append(array('id' => '206',)); + +Route::get('/yhzz/:id', 'Detail/index')->name('Detail/index?cid=206')->append(array('cid' => '206',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/qhjygz', 'List/index')->name('List/index?id=207')->append(array('id' => '207',)); + +Route::get('/qhjygz/:id', 'Detail/index')->name('Detail/index?cid=207')->append(array('cid' => '207',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/qhpzjysj', 'List/index')->name('List/index?id=208')->append(array('id' => '208',)); + +Route::get('/qhpzjysj/:id', 'Detail/index')->name('Detail/index?cid=208')->append(array('cid' => '208',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/gzjg', 'List/index')->name('List/index?id=209')->append(array('id' => '209',)); + +Route::get('/gzjg/:id', 'Detail/index')->name('Detail/index?cid=209')->append(array('cid' => '209',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/qhjjhtwb', 'List/index')->name('List/index?id=210')->append(array('id' => '210',)); + +Route::get('/qhjjhtwb/:id', 'Detail/index')->name('Detail/index?cid=210')->append(array('cid' => '210',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/sbf', 'List/index')->name('List/index?id=211')->append(array('id' => '211',)); + +Route::get('/sbf/:id', 'Detail/index')->name('Detail/index?cid=211')->append(array('cid' => '211',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/hyzq', 'List/index')->name('List/index?id=212')->append(array('id' => '212',)); + +Route::get('/hyzq/:id', 'Detail/index')->name('Detail/index?cid=212')->append(array('cid' => '212',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/zxdz', 'List/index')->name('List/index?id=213')->append(array('id' => '213',)); + +Route::get('/zxdz/:id', 'Detail/index')->name('Detail/index?cid=213')->append(array('cid' => '213',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/hqtj', 'List/index')->name('List/index?id=214')->append(array('id' => '214',)); + +Route::get('/hqtj/:id', 'Detail/index')->name('Detail/index?cid=214')->append(array('cid' => '214',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + +Route::get('/mrtx', 'List/index')->name('List/index?id=191')->append(array('id' => '191',)); + +Route::get('/mrtx/:id', 'Detail/index')->name('Detail/index?cid=191')->append(array('cid' => '191',)) +->pattern(array('id' => '\d+', 'cid' => '\d+',)); + + + + + +// 前台公共路由 + +// 询盘提交 + +Route::post('inquiry/save', 'Inquiry/save'); + + + +// 标签 + +Route::get('/tag', 'Tag/index'); + + + +Route::get('/tag/:name', 'Tag/index')->name('Tag/index') + + ->pattern(array('name' => '[a-zA-Z]{1,1}+')); + +Route::get('/tagList/:id', 'List/tag')->name('List/tag') + + ->pattern(array('id' => '\d+')); + + + +// 搜索 + +Route::get('/search', 'Search/index'); + + + +// 表单 + +Route::get('/c/:code', 'Form/index')->name('Form/index') + + ->pattern(array('code' => '\w+')); + +Route::post('/addFormData', 'Form/save'); + +Route::post('/uploadFormFile', 'Form/uploadFormFile'); + + + +// 数据处理, 输入导入 ==================================================== STRT + +Route::post('/dealDataToNew', 'Form/dealDataToNew'); + +// 数据处理, 输入导入 ==================================================== END + + + + + +Route::get('/down/:id', 'Form/downFile')->name('Form/downFile') + + ->pattern(array('id' => '\d+')); + + + +Route::get('/design/index', 'Design/index'); + +Route::get('/design/getDesignHtml', 'Design/getDesignHtml'); + +Route::get('/preview','Detail/preview'); + + + +Route::get('/robots.txt','Seo/getRobots'); + +Route::get('/sitemap.xml','Seo/getSitemapXml'); + +Route::get('/sitemap','Seo/getSitemapHtml'); + +Route::get('/404','Inquiry/404'); + +})->prefix('frontend.'); + + + + +// 后台路由 + +Route::group(function () { + + Route::group(function () { + + // 安装 + + Route::get('/install', '/index'); + + Route::get('/install_monitor', '/monitor'); + + Route::get('/install_configure', '/configure'); + + Route::post('/install_create', '/create'); + + Route::any('/install_exec', '/install'); + + Route::get('/install_check', '/installCompleteCheck'); + + Route::get('/install_done_complete', '/completeCheck'); + + Route::post('/install_testPass', '/testPass'); + + Route::get('/install_complete', '/complete'); + + Route::post('/install_user_check', '/userCheck'); + + + + })->prefix(config('route.admin') . '.systemInstall'); + + // 登录注册 + + Route::post('/account/login', config('route.admin') . '.account/login'); + + Route::post('/account/authCode', config('route.admin') . '.account/authCode'); + + + + Route::group(function () { + + + + // 管理员管理 + + Route::group('admin', function () { + + Route::post('/save', '/save'); + + Route::get('/index', '/index'); + + Route::get('/read', '/read'); + + Route::post('/update', '/update'); + + Route::post('/delete', '/delete'); + + // 当前管理员权限 + + Route::get('/self', '/self'); + + // 当前管理员权限 + + Route::post('/selfUpdate', '/selfUpdate'); + + Route::get('current', '/current'); + + + + })->prefix(config('route.admin') . '.admin'); + + + + // 角色管理 + + Route::group('role', function () { + + Route::post('/save', '/save'); + + Route::get('/index', '/index'); + + Route::get('/read', '/read'); + + Route::post('/update', '/update'); + + Route::post('/delete', '/delete'); + + // 所有权限 + + Route::get('/getAuth', '/getAuth'); + + Route::get('/getMenuAndUpdateAuth', '/getMenuAndUpdateAuth'); + + })->prefix(config('route.admin') . '.role'); + + + + // 网站管理 + + Route::group('website',function(){ + + Route::post('/save','/save'); + + Route::get('/index','/index'); + + Route::post('/update','/update'); + + Route::post('/delete','/delete'); + + Route::post('/sitemap','/sitemap'); + + Route::post('/setStatus','/setStatus'); + + })->prefix(config('route.admin').'.website'); + + + + // 模型管理 + + Route::group('module', function () { + + Route::post('/save', '/save'); + + Route::get('/index', '/index'); + + Route::get('/read', '/read'); + + Route::post('/update', '/update'); + + Route::post('/delete', '/delete'); + + // 所有模型 + + Route::get('/all', '/all'); + + Route::get('/field', '/field'); + + })->prefix(config('route.admin') . '.module'); + + + + // 模型字段管理 + + Route::group('moduleField', function () { + + Route::post('/save', '/save'); + + Route::get('/index', '/index'); + + Route::get('/read', '/read'); + + Route::post('/update', '/update'); + + Route::post('/delete', '/delete'); + + Route::get('/list', '/list'); + + Route::get('/relationValueList','/getRelationFieldListValue'); + + + + })->prefix(config('route.admin') . '.moduleField'); + + + + // 栏目管理 + + Route::group('category', function () { + + Route::post('/save', '/save'); + + Route::get('/index', '/index'); + + Route::get('/read', '/read'); + + Route::post('/update', '/update'); + + Route::post('/delete', '/delete'); + + // 模型下的所有栏目 + + Route::get('/getModuleCate', '/getModuleCate'); + + // 栏目复制 + + Route::post('/copy', '/copy'); + + // 栏目状态修改 + + Route::post('updateStatus', '/updateStatus'); + + + + })->prefix(config('route.admin') . '.category'); + + + + // 前台导航分类管理 + + Route::group('navCate', function () { + + Route::post('/save', '/save'); + + Route::get('/index', '/index'); + + Route::get('/read', '/read'); + + Route::post('/update', '/update'); + + Route::post('/delete', '/delete'); + + })->prefix(config('route.admin') . '.navCate'); + + + + // 前台导航管理 + + Route::group('nav', function () { + + Route::post('/save', '/save'); + + Route::get('/index', '/index'); + + Route::get('/read', '/read'); + + Route::post('/update', '/update'); + + Route::post('/delete', '/delete'); + + Route::post('/batchCreate','/batchCreate'); + + Route::post('/updateStatus', '/updateStatus'); + + })->prefix(config('route.admin') . '.nav'); + + + + // 内容管理 + + Route::group('content', function () { + + Route::post('/save', '/save'); + + Route::get('/index', '/index'); + + Route::get('/read', '/read'); + + Route::post('/update', '/update'); + + Route::post('/delete', '/delete'); + + // 获取新增内容字段 + + Route::get('/create', '/create'); + + // 获取副表内容 + + Route::get('/mainContent', '/mainContent'); + + // 置顶 取消置顶 推荐 取消推荐 + + Route::post('/topOpt', '/topOpt'); + + Route::post('/recommendAndStatus', '/recommendAndStatus'); + + // 内链添加 + + Route::post('/addInnerChat', '/addInnerChat'); + + // 图片本地化 + + Route::post('/imgLocal', '/imgLocal'); + + // 简介提取 + + Route::post('/descExtraction', '/descExtraction'); + + // 文章上传 + + Route::post('/articleUpload', '/articleUpload'); + + // 模型内容 + + Route::get('/moduleContent', '/moduleContent'); + + // 违禁词查询 + + Route::post('/wordSearch', '/wordSearch'); + + + + //审核列表 + + Route::get('/checkList', '/checkList'); + + //回收站列表 + + Route::get('/recycleBinList', '/recycleBinList'); + + //审核 + + Route::post('/checkAll', '/checkAll'); + + //修改状态 + + Route::post('/editStatus', '/editStatus'); + + Route::post('/delAll', '/delAll'); + + Route::post('/recoverAll', '/recoverAll'); + + // 导入excel文章列表 + + Route::post('/importExcel', '/importExcel'); + + + + })->prefix(config('route.admin') . '.content'); + + + + // 标签管理 + + Route::group('tag', function () { + + Route::post('/save', '/save'); + + Route::get('/backendIndex', '/index'); + + Route::post('/update', '/update'); + + Route::post('/delete', '/delete'); + + })->prefix(config('route.admin') . '.tag'); + + + + // 友情链接管理 + + Route::group('link', function () { + + Route::post('/save', '/save'); + + Route::get('/index', '/index'); + + Route::get('/read', '/read'); + + Route::post('/update', '/update'); + + Route::post('/delete', '/delete'); + + // 复制其他站点友情链接 + + Route::post('/copy', '/link'); + + })->prefix(config('route.admin') . '.link'); + + + + // sysSetting + + Route::group('sysSetting', function () { + + Route::get('/index', '/index'); + + Route::post('/update', '/update'); + + Route::post('/emailClear', '/emailClear'); + + Route::post('/clearCache', '/clearCache'); + + Route::post('/password', '/password'); + + Route::get('/passInfo', '/passInfo'); + + + + })->prefix(config('route.admin') . '.sysSetting'); + + + + // 后台菜单管理 + + Route::group('adminMenu', function () { + + Route::post('/save', '/save'); + + Route::get('/index', '/index'); + + Route::post('/update', '/update'); + + Route::post('/delete', '/delete'); + + Route::post('/updateMenuStatus', '/updateMenuStatus'); + + Route::get('/getUserMenuList', '/getUserMenuList'); //得到当前 + + Route::get('/getDynamicMenu', '/getDynamicMenu'); //得到动态路由 + + })->prefix(config('route.admin') . '.adminMenu'); + + + + // 日志管理 + + Route::get('/adminLoginLog/index', config('route.admin') . '.adminLoginLog/index'); + + Route::get('/adminOptLog/index', config('route.admin') . '.adminOptLog/index'); + + Route::post('/adminOptLog/delete', config('route.admin') . '.adminOptLog/delete'); + + Route::post('/adminLoginLog/delete', config('route.admin') . '.adminLoginLog/delete'); + + + + // 网站配置 + + Route::group('websiteSetting', function () { + + Route::get('/read', '/read'); + + Route::post('/update', '/update'); + + })->prefix(config('route.admin') . '.websiteSetting'); + + + + // 网站配置 + + // 基本配置 + + Route::group('websiteSetting', function () { + + Route::get('/read', '/read'); + + Route::post('/update', '/update'); + + })->prefix(config('route.admin') . '.websiteSetting'); + + // 语言配置 + + Route::group('websiteLang', function () { + + Route::get('/system', '/system'); + + Route::get('/index', '/index'); + + Route::post('/save', '/save'); + + Route::post('/changeLang', '/changeLang'); + + })->prefix(config('route.admin') . '.websiteLang'); + + // 服务器配置 + + Route::group('websiteServer', function () { + + Route::post('/save', '/save'); + + Route::get('/read', '/read'); + + Route::post('/update', '/update'); + + })->prefix(config('route.admin') . '.websiteServer'); + + + + // 数据库备份 + + Route::group('database', function () { + + Route::post('/backup', '/backup'); + + Route::post('/restore', '/restore'); + + Route::get('/tableList', '/tableList'); + + Route::get('/index', '/index'); + + Route::post('/delete', '/delete'); + + })->prefix(config('route.admin') . '.database'); + + + + // 回收站管理 + + Route::group('recycleBin', function () { + + Route::post('/save', '/save'); + + Route::get('/index', '/index'); + + Route::post('/clean', '/clean'); + + Route::post('/delete', '/delete'); + + Route::post('/restore', '/restore'); + + Route::post('/allRestore', '/allRestore'); + + })->prefix(config('route.admin') . '.recycleBin'); + + + + // 网站模版管理 + + Route::group('theme', function () { + + Route::get('/install', '/install'); + + Route::post('/installTheme', '/installTheme'); + + Route::get('/index', '/index'); + + Route::post('/active', '/active'); + + Route::post('/update', '/update'); + + Route::post('/uninstall', '/uninstall'); + + Route::get('/allFilePath', '/allFilePath'); + + Route::get('/allFiles', '/allFiles'); + + Route::get('/tmpFile', '/tmpFile'); + + Route::post('/delete', '/delete'); + + Route::get('/templateFile', '/templateFile'); + + })->prefix(config('route.admin') . '.theme'); + + + + // 模版文件管理 + + Route::group('themeFile', function () { + + Route::post('/design', '/design'); + + Route::get('/index', '/index'); + + Route::get('/read', '/read'); + + Route::post('/update', '/update'); + + Route::get('/active', '/active'); + + + + Route::post('/singleUpdate', '/singleUpdate'); + + + + })->prefix(config('route.admin') . '.themeFile'); + + + + // 附件管理 + + Route::group('attachment', function () { + + Route::post('/save', '/save'); + + Route::get('/index', '/index'); + + Route::post('/uploadAndSave', '/uploadAndSave'); + + Route::post('/update', '/update'); + + Route::post('/delete', '/delete'); + + Route::post('/sliceUploadAndSave', '/sliceUploadAndSave'); + + Route::post('/editFileUrl', '/editFileUrl'); + + })->prefix(config('route.admin') . '.attachment'); + + + + // 附件分类管理 + + Route::group('attachmentCate', function () { + + Route::post('/save', '/save'); + + Route::get('/index', '/index'); + + Route::post('/update', '/update'); + + Route::post('/delete', '/delete'); + + })->prefix(config('route.admin') . '.attachmentCate'); + + + + // 询盘管理 + + Route::group('inquiry', function () { + + Route::post('/backendSave', '/backendSave'); + + Route::get('/index', '/index'); + + Route::get('/read', '/read'); + + Route::post('/update', '/update'); + + Route::post('/delete', '/delete'); + + Route::post('/exportInquiry', '/exportInquiry'); + + })->prefix(config('route.admin') . '.inquiry'); + + + + // 询盘分类管理 + + Route::group('inquiryCategory', function () { + + Route::post('/save', '/save'); + + Route::get('/index', '/index'); + + Route::get('/read', '/read'); + + Route::post('/update', '/update'); + + Route::post('/delete', '/delete'); + + })->prefix(config('route.admin') . '.inquiryCategory'); + + + + // 询盘收件箱 + + Route::group('inquiryEmail', function () { + + Route::post('/save', '/save'); + + Route::get('/index', '/index'); + + Route::get('/read', '/read'); + + Route::post('/update', '/update'); + + Route::post('/delete', '/delete'); + + })->prefix(config('route.admin') . '.inquiryEmail'); + + + + // 关键词管理 + + Route::group('keyword', function () { + + Route::post('/save', '/save'); + + Route::get('/index', '/index'); + + Route::get('/read', '/read'); + + Route::post('/update', '/update'); + + Route::post('/delete', '/delete'); + + Route::post('/import', '/import'); + + Route::get('/template', '/template'); + + Route::get('/monitor', '/monitor'); + + Route::get('/echarts', '/echarts'); + + Route::post('/updateRank', '/updateRank'); + + })->prefix(config('route.admin') . '.keyword'); + + // 关键词管理 + + Route::group('keywordQuery', function () { + + // 关键词监控 + + Route::get('/index', '/index'); + + Route::post('/save', '/save'); + + Route::get('/list', '/list'); + + })->prefix(config('route.admin') . '.keywordQuery'); + + + + // 内链管理 + + Route::group('innerChart', function () { + + Route::post('/save', '/save'); + + Route::get('/index', '/index'); + + Route::get('/read', '/read'); + + Route::post('/update', '/update'); + + Route::post('/delete', '/delete'); + + })->prefix(config('route.admin') . '.innerChart'); + + + + // 广告管理 + + Route::group('advertisement', function () { + + Route::post('/save', '/save'); + + Route::get('/index', '/index'); + + Route::get('/read', '/read'); + + Route::post('/update', '/update'); + + Route::post('/delete', '/delete'); + + })->prefix(config('route.admin') . '.advertisement'); + + + + // 友情链接管理 + + Route::group('link', function () { + + Route::post('/save', '/save'); + + Route::get('/index', '/index'); + + Route::get('/read', '/read'); + + Route::post('/update', '/update'); + + Route::post('/delete', '/delete'); + + })->prefix(config('route.admin') . '.link'); + + + + //seo账号管理 + + Route::group('seoAccount',function(){ + + Route::get('/lists','/lists'); + + Route::post('/add','/add'); + + Route::post('/edit','/edit'); + + Route::get('/info','/info'); + + Route::post('/del','/del'); + + })->prefix(config('route.admin').'.seoAccount'); + + + + //SEO + + Route::group('seo',function(){ + + Route::get('/baidu','/baidu'); // 百度昨日总统计+账号列表 + + })->prefix(config('route.admin').'.seo'); + + + + // 百度统计 + + Route::group('statistics', function () { + + Route::get('/lists', '/lists'); // 站点列表 + + Route::get('/age', '/age'); // 访问者年龄 + + Route::get('/outline', '/outline'); // 今日昨日浏览量分析 + + Route::get('/qxt', '/qxt'); // 趋势图 + + Route::get('/search_word', '/search_word'); // 关键词消费排名 + + Route::get('/get_common_track_rpt', '/get_common_track_rpt'); // 网站概况(来源网站、搜索词、入口页面、受访页面、新老访客) + + Route::get('/area', '/area'); // 网站概况(地域分布) + + Route::get('/area_top', '/area_top'); // 网站概况(地域分布Top10) + + + + + + Route::get('/indexLists', '/indexLists'); // 首页浏览量统计 + + Route::get('/indexQST', '/indexQST'); // 首页趋势图 + + Route::get('/indexArea', '/indexArea'); // 首页地区分布图 + + + + })->prefix(config('route.admin') . '.statistics'); + + // 谷歌统计 + + + + + + // 职位管理 + + Route::group('job', function () { + + Route::post('/save', '/save'); + + Route::get('/index', '/index'); + + Route::get('/read', '/read'); + + Route::post('/update', '/update'); + + Route::post('/delete', '/delete'); + + })->prefix(config('route.admin') . '.job'); + + + + // 职位分类管理 + + Route::group('jobCate', function () { + + Route::post('/save', '/save'); + + Route::get('/index', '/index'); + + Route::get('/read', '/read'); + + Route::post('/update', '/update'); + + Route::post('/delete', '/delete'); + + })->prefix(config('route.admin') . '.jobCate'); + + + + // 职位城市管理 + + Route::group('jobCity', function () { + + Route::post('/save', '/save'); + + Route::get('/index', '/index'); + + Route::get('/read', '/read'); + + Route::post('/update', '/update'); + + Route::post('/delete', '/delete'); + + })->prefix(config('route.admin') . '.jobCity'); + + + + // 文件上传 + + Route::post('/upload/save', config('route.admin') . '.Upload/save'); + + // 控制面板 + + Route::get('/dashboard/index', config('route.admin') . '.dashboard/index'); + + + + // 幻灯片分类 + + Route::group('slideCate', function () { + + Route::post('/save', '/save'); + + Route::get('/index', '/index'); + + Route::get('/read', '/read'); + + Route::post('/update', '/update'); + + Route::post('/delete', '/delete'); + + })->prefix(config('route.admin') . '.slideCate'); + + // 幻灯片列表 + + Route::group('slide', function () { + + Route::post('/save', '/save'); + + Route::get('/index', '/index'); + + Route::get('/read', '/read'); + + Route::post('/update', '/update'); + + Route::post('/delete', '/delete'); + + })->prefix(config('route.admin') . '.slide'); + + + + // 表单管理 + + Route::group('form', function () { + + Route::post('/add', '/add'); + + Route::get('/info', '/info'); + + Route::get('/index', '/index'); + + Route::post('/edit', '/edit'); + + Route::get('/del', '/del'); + + Route::post('/design', '/design'); + + Route::get('/detail', '/detail'); + + Route::get('/deploy', '/deploy'); + + Route::get('/undeploy', '/undeploy'); + + Route::get('/quesDetail', '/quesDetail'); + + Route::post('/exportForm', '/exportForm'); + + })->prefix(config('route.admin') . '.form'); + + + + // 封面管理 + + Route::group('material', function () { + + Route::post('/add', '/add'); + + Route::post('/upload', '/upload'); + + Route::get('/index', '/index'); + + Route::post('/del', '/del'); + + })->prefix(config('route.admin') . '.material'); + + + + // 海报管理 + + Route::group('poster', function () { + + Route::post('/preview', '/preview'); + + Route::get('/index', '/index'); + + Route::post('/add', '/add'); + + Route::get('/edit', '/edit'); + + Route::post('/copy', '/copy'); + + Route::post('/del', '/del'); + + })->prefix(config('route.admin') . '.poster'); + + + + // seo诊断 + + Route::group('SeoCheck', function () { + + Route::get('/index', '/index'); + + Route::post('/start', '/start'); + + Route::post('/check', '/check'); + + Route::post('/del', '/del'); + + })->prefix(config('route.admin') . '.SeoCheck'); + + + + Route::group('Design', function () { + + Route::get('/getLinkList', '/getLinkList'); + + Route::post('/save', '/save'); + + Route::post('/publish', '/publish'); + + Route::get('/getCategoryList', '/getCategoryList'); + + Route::get('/getCategoryData', '/getCategoryData'); + + Route::get('/history', '/getHistoryList'); + + Route::post('/setPreviewPage', '/setPreviewPage'); + + + + })->prefix(config('route.admin') . '.Design'); + + + + Route::group('Plugin', function () { + + Route::get('/list', '/index'); + + Route::post('/install', '/install'); + + Route::post('/uninstall', '/uninstall'); + + Route::post('/editStatus', '/editStatus'); + + })->prefix(config('route.admin') . '.Plugin'); + + + + Route::group('StaticFile', function () { + + Route::post('/updateCategoryCache', '/updateCategoryCache'); + + Route::post('/createCategory', '/createCategory'); + + Route::post('/createContent', '/createContent'); + + })->prefix(config('route.admin') . '.StaticFile'); + + + + Route::group('ContentImport', function () { + + // 手续费 + + Route::post('/commission', '/commission'); + + // 保证金 + + Route::post('/margin', '/margin'); + + // 交易品种 + + Route::post('/variety', '/variety'); + + // 交易规则 + + Route::post('/rule', '/rule'); + + // 交易日历 + + Route::post('/calendar', '/calendar'); + + // 居间人 + + Route::post('/intermediary', '/intermediary'); + + + + })->prefix(config('route.admin') . '.custom.ContentImport'); + + + + })->middleware('login'); + + + + //询盘导出的内容下载 + + Route::get('/excel/downInquiryExcel', config('route.admin') . '.excel/downInquiryExcel'); + +}); + + + +Route::miss(function () { + + if (!hcInstalled()) { + + return redirect('/install'); + + } + + if(request()->isJson()){ + + throw new \app\exception\RouteMissException(); + + }else{ + + throw new \think\exception\HttpException(404); + + } + +}); + + + + + +}); + diff --git a/route/2_zh_plugin_api.php b/route/2_zh_plugin_api.php new file mode 100644 index 0000000..83bfe41 --- /dev/null +++ b/route/2_zh_plugin_api.php @@ -0,0 +1,48 @@ +middleware('login'); + +}); +}); +