Update manage.py

This commit is contained in:
qiaofeng1227 2023-03-14 10:02:21 +08:00 committed by GitHub
parent ffa8337670
commit 4c17dba83a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -168,7 +168,7 @@ def install_app(app_name, customer_app_name, app_version):
file_path = "/data/apps/running_apps.txt" file_path = "/data/apps/running_apps.txt"
# 防止app名重复 # 防止app名重复
if if os.path.exists("/data/apps/"+customer_app_name) if os.path.exists("/data/apps/"+customer_app_name)
ret = Response(code=const.RETURN_FAIL , message="APP名称已经使用请指定其他名称重新安装。") ret = Response(code=const.RETURN_FAIL , message="APP名称已经使用请指定其他名称重新安装。")
ret = ret.dict() ret = ret.dict()
return ret return ret