feat: sysbaseview返回系统版本号

This commit is contained in:
caoqianming 2025-04-02 10:12:30 +08:00
parent ef90f95a6b
commit 454737db03
1 changed files with 2 additions and 0 deletions

View File

@ -718,6 +718,8 @@ class SysBaseConfigView(APIView):
config = get_sysconfig()
base_dict = {key: config[key]
for key in self.read_keys if key in config}
base_dict.get("base", {})["sys_version"] = settings.SYS_VERSION
base_dict.get("base", {})["sys_name"] = settings.SYS_NAME
return Response(base_dict)