如果想要隐藏ThinkPHP返回错误信息中的具体内容,可以修改ThinkPHP的默认错误页面,在文件
vendor\topthink\framework\src\tpl\think_exception.tpl中,可以修改这个模板。
如果想要隐藏ThinkPHP返回错误信息中的具体内容,可以修改ThinkPHP的默认错误页面,在文件
vendor\topthink\framework\src\tpl\think_exception.tpl中,可以修改这个模板。
import sys sys.path.append('../..') sys.path.append('.') sys.path.append('./') 把這些路徑都加入sys.path就找到了.