修复搜索特殊符号报错
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
use think\facade\Route;
|
||||
|
||||
|
||||
Route::get('s/<name>-<page?>-<cate?>','index/index/list',[],['name' => '.+', 'id' => '\d+', 'cate' => '\d+']);
|
||||
Route::get('s/<name>-<page?>-<cate?>', 'index/index/list')->pattern(['name' => '[^-]+', 'id' => '\d+', 'cate' => '\d+']);
|
||||
Route::get('d/:id','index/index/detail');
|
||||
Route::get('sitemap.xml', 'index/sitemap/index');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user