面板版本:宝塔linux面板 免费版 Beta 8.0.48
系统版本:CentOS 7.9.2009 x86_64
浏览器版本:Google Chrome 73.0.3664.3
问题现象:创建新计划任务报错,提示:出错了,面板运行时发生错误!AttributeError: 'dict_obj' object has no attribute 'time_type'
REQUEST_DATE: 2023-12-29 16:52:39 PAN_VERSION: 8.0.48 OS_VERSION: CentOS 7.9.2009 x86_64(Py3.7.9) REMOTE_ADDR: 39.70.93.201 REQUEST_URI: POST /crontab?action=AddCrontabREQUEST_FORM: {'name': 'richang', 'type': 'hour', 'week': '1', 'hour': '1', 'minute': '18', 'where1': '1', 'timeSet': '1', 'sType': 'toShell', 'sBody': 'btpython /www/wwwroot/hosts.py\nbtpython /www/wwwroot/jc_pdf.py\n', 'sName': '', 'backupTo': '', 'save': '', 'urladdress': '', 'save_local': '0', 'notice': '0', 'notice_channel': '', 'datab_name': '', 'tables_name': '', 'keyword': '', 'flock': '1'} USER_AGENT: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36Traceback (most recent call last): File "/www/server/panel/BTPanel/__init__.py", line 2291, in publicObject res = run_obj.run(toObject, defs, get) File "/www/server/panel/BTPanel/__init__.py", line 2238, in run result = getattr(toObject, get.action)(get) File "/www/server/panel/class/crontab.py", line 560, in AddCrontab cronName = self.GetShell(get) File "/www/server/panel/class/crontab.py", line 766, in GetShell if param.time_type=="sweek":AttributeError: 'dict_obj' object has no attribute 'time_type'
重现方式:创建计划任务
|
|