为了能快速了解并处理您的问题,请提供以下基础信息:
REQUEST_DATE: 2024-01-12 20:15:47
PAN_VERSION: 8.0.5
OS_VERSION: CentOS 7.6.1810 x86_64(Py3.7.9)
REMOTE_ADDR: xxxxx
REQUEST_URI: POST /site?action=SiteStop
REQUEST_FORM: {'id': '2', 'name': 'xxxx.com'}
USER_AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0
Traceback (most recent call last):
File "/www/server/panel/BTPanel/__init__.py", line 2292, in publicObject
res = run_obj.run(toObject, defs, get)
File "/www/server/panel/BTPanel/__init__.py", line 2239, in run
result = getattr(toObject, get.action)(get)
File "/www/server/panel/class/panelSite.py", line 2679, in SiteStop
type_id=get.type_id
AttributeError: 'dict_obj' object has no attribute 'type_id'
传参不包含type_id
2679行的get.type_id改为1,重启面板,亲测可以正常关闭
|
|