thinkphp6 tp6 debug模式下关闭trace调试
2022-11-24 11:10:29
179
{{single.collect_count}}

新安装的thinkphp6 开启了调试模式,get接口中会出现trace输出的信息,导致接口中返回的数据无法解析。

在  think\trace\Service  中将 $this->app->middleware->add(TraceDebug::class); 注释掉即可

 开启时在 middleware.php 中添加 \think\trace\TraceDebug::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 ? '加载中...' : '查看更多评论'}}