thinkPHP6 多应用session 设置
2022-11-24 11:10:29
186
{{single.collect_count}}

在app/middleware.php 的 Session初始化,注释掉

 // \think\middleware\SessionInit::class

在**某个应用(多应用的情况下)**目录的middleware.php,添加 Session初始化,原先是空白的

// 这是系统自动生成的middleware定义文件return [// Session初始化\think\middleware\SessionInit::class]
回帖
全部回帖({{commentCount}})
{{item.user.nickname}} {{item.user.group_title}} {{item.friend_time}}
{{item.content}}
{{item.comment_content_show ? '取消' : '回复'}} 删除
回帖
{{reply.user.nickname}} {{reply.user.group_title}} {{reply.friend_time}}
{{reply.content}}
{{reply.comment_content_show ? '取消' : '回复'}} 删除
回帖
收起
没有更多啦~
{{commentLoading ? '加载中...' : '查看更多评论'}}