mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-11-22 23:50:31 +00:00
Update manage.py
This commit is contained in:
parent
5595fe8e76
commit
4488f6ea29
1 changed files with 2 additions and 1 deletions
|
@ -7,7 +7,8 @@ from api.model.app import App
|
|||
# 获取所有app的信息
|
||||
def get_my_app(app_name=None):
|
||||
#{"name":"id",...}
|
||||
ip = socket.gethostbyname(socket.gethostname())
|
||||
ip_result = shell_execute.execute_command_output_all("curl ifconfig.me")
|
||||
ip = ip_result["result"]
|
||||
ret = {}
|
||||
ret["code"] = -1
|
||||
ret["message"] = "app查询失败"
|
||||
|
|
Loading…
Reference in a new issue