在看LOG时发现 Undefined variable 和 Undefined index 的问题
但又懒得解决(最好别这样)
于是去查了一下解决的方式
在 php 脚本中加上
error_reporting(E_ALL & ~E_NOTICE);
就可以避免掉 log 产生的 notice 错误
虽然这做法不好啦,最好还是解决一下为什么会产生 Undefined variable 和 Undefined index 的问题
参考
https://ianakaberlin.medium.com/php-%E9%97%9C%E9%96%89-undefined-variable-%E8%88%87-undefined-index-%E8%AD%A6%E5%91%8A-e-notice-error-reporting-e-all-%E4%BC%8A%E6%81%A9%E8%B8%A9%E5%9D%91%E7%AD%86%E8%A8%98-22cf7ae51851