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

tp6 download()->send() 操作内容会输出到 cli 上面。 #58

Open
zoujingli opened this issue Oct 16, 2023 · 1 comment
Open

tp6 download()->send() 操作内容会输出到 cli 上面。 #58

zoujingli opened this issue Oct 16, 2023 · 1 comment

Comments

@zoujingli
Copy link

ob_end_clean();

这里未对 download()->send() 进行处理,在 tp6 中,File 返回会有一个 while 处理 ob 的过滤,会造成 内容输出到 cli 上。

image

建议在实例 Res 对象时使用 make 方式,可以通过注入的方式替换原有返回对象。

@shunhua
Copy link

shunhua commented Nov 14, 2023

你执行 reload 有啥问题没?

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

2 participants