Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

回调函数里针对不同控制器和方法定制生成key? #13

Open
18215569765 opened this issue Sep 24, 2021 · 2 comments
Open

回调函数里针对不同控制器和方法定制生成key? #13

18215569765 opened this issue Sep 24, 2021 · 2 comments

Comments

@18215569765
Copy link

'key' => 'CONTROLLER/ACTION/IP',
PS:此示例需要本中间件在路由中间件后启用。在路由中间件之后启用是什么意思?

@hongweipeng
Copy link
Member

这部分是让中间件能自动替换成具体的控制器名称的。但受于中间件机制的限制,一般情况下获取不到,需要在路由中间件是才获取得到。路由中间件的使用可见:https://www.kancloud.cn/manual/thinkphp6_0/1037493

@dj8jj
Copy link

dj8jj commented Dec 19, 2023

'key' => 'CONTROLLER/ACTION/IP',
这个完全就不能显示出来啊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants