路由中为什么不能匹配中文?

浏览:353 发布日期:2019/01/19 分类:ThinkPHP5专区
路由中只要出现中文就报错,比如example.com/category/5/搜索内容这样就会报错other codes...
 
\think\facade\Route::get('category/<category_id>/<search_name>', 'index/index/category')->pattern(['category_id' => '\d+','search_name' => '.+']);
最佳答案
评论( 相关
后面还有条评论,点击查看>>