think-throttle icon indicating copy to clipboard operation
think-throttle copied to clipboard

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

Open 18215569765 opened this issue 3 years ago • 2 comments

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

18215569765 avatar Sep 24 '21 01:09 18215569765

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

hongweipeng avatar Sep 24 '21 13:09 hongweipeng

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

dj8jj avatar Dec 19 '23 07:12 dj8jj