Update to v7.57.0

This commit is contained in:
aapanel.com
2025-11-21 17:19:27 +08:00
parent b6e4ab8b35
commit eb21fc65dd
1241 changed files with 22299 additions and 5531 deletions
+7 -3
View File
@@ -112,9 +112,13 @@ class Base(object):
@param
@return dict{"status":True/False,"msg":"提示信息"}
"""
aa = public.to_size(public.get_path_size("/www/wwwlogs"))
size = aa if aa else "0B"
return public.return_message(0, 0, {"log_path": "/www/wwwlogs", "size": size})
log_path = "/www/wwwlogs"
if not os.path.exists(log_path):
return public.return_message(0, 0, {"log_path": log_path, "size": "0B"})
path_size = public.to_size(public.get_path_size(log_path))
size = path_size if path_size else "0B"
return public.return_message(0, 0, {"log_path": log_path, "size": size})
# 2024/3/25 上午 10:50 获取防火墙类型,firewall或ufw
def _get_firewall_type(self) -> str: