Results 41 comments of jwj

> > 暂时可参考 [top-think/think-template#16](https://github.com/top-think/think-template/pull/16) ,自定义一个函数,然后修改`默认过滤方法`配置 > > 按这个方案修改报错: > > `[2024-08-09T10:29:35+08:00][error] [0]Call to undefined function tp_htmlentities()` 自己在 `app/common.php` 文件自定义一个函数。 ```php function tp_htmlentities($str) { return htmlentities((string)$str); } ```

该问题在 [8.0](https://github.com/top-think/framework/pull/2850) 已修复,ThinkPHP 6.* 系列无该问题 测试代码: ```php Cache::set('test', 'dasdas'); Cache::push('test', '12580') ``` ![image](https://github.com/top-think/framework/assets/9215157/be3a333b-fb3b-4afb-96d3-dc222b1bb2bf)

https://github.com/top-think/framework/issues/2341

![image](https://github.com/top-think/framework/assets/9215157/c9e911ef-394d-4377-802e-28077028e015) 无法复现

> 在多应用模式下,应该在 `app/[应用目录]/middleware.php` 中加载 `\think\middleware\LoadLangPack::class` ![image](https://github.com/top-think/framework/assets/9215157/5b71d19d-4582-4fa3-8d39-b96f0becbb25) 如果还有问题,请在此继续讨论或重新开始当前Issue,谢谢!

> @big-dream 是更新了:`https://github.com/top-think/think-multi-app`,但是没有发布版本啊,难道用dev版本,不好吧。。 测试时用的不是 `dev` 版本,所以应该不影响。

> 我觉得可以生成的日志文件权限 `0666` 更好。 感觉可以一起上 🍭

> ![image](https://user-images.githubusercontent.com/7546325/246442294-7ba62eee-6159-4e8c-84ac-e86e2d422853.png) > > 如果注释返回是 `@return Type[]` ,对 IDE 貌似更友好。 因为 `Input->options` 就是普通数组,不是`Option[] `,我在IDE使用`$input->getOptions()`获取全部选项然后去使用时,IDE会给出错误提示。 ![image](https://github.com/top-think/framework/assets/9215157/ee324c09-f1e3-4fb6-89a2-9f0b80f68771) 根据实际排查和阅读代码,`Input->options` 最多就算是`mixed[]`而不是`Option[] `

> 在多應用模式下,不要在 `app/middleware.php` 的地方載入 `\think\middleware\LoadLangPack::class` 改成在 `app/[多應用目錄]/middleware.php` 的地方載入 正解 ![image](https://github.com/top-think/framework/assets/9215157/5b71d19d-4582-4fa3-8d39-b96f0becbb25)