fix: 修复session、模板页脚页头初始化
This commit is contained in:
@@ -26,6 +26,15 @@ use function root_path;
|
||||
|
||||
class IndexInitialize implements MiddlewareInterface
|
||||
{
|
||||
/**
|
||||
* @param Request $request
|
||||
* @param callable $handler
|
||||
* @return Response
|
||||
* @throws \Psr\SimpleCache\InvalidArgumentException
|
||||
* @throws \think\db\exception\DataNotFoundException
|
||||
* @throws \think\db\exception\DbException
|
||||
* @throws \think\db\exception\ModelNotFoundException
|
||||
*/
|
||||
public function process(Request $request, callable $handler): Response
|
||||
{
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user