MCPcopy Create free account
hub / github.com/aaPanel/BaoTa / bind_app_status

Method bind_app_status

mod/project/node/nodeMod.py:65–76  ·  view source on GitHub ↗
(get)

Source from the content-addressed store, hash-verified

63
64 @staticmethod
65 def bind_app_status(get):
66 n, err = Node.from_dict(get)
67 if not n:
68 return json_response(False, msg=err)
69 if not n.app_key:
70 return json_response(False, msg="请指定要绑定的app秘钥")
71 srv = ServerNode("", "", n.app_key)
72 res = srv.app_bind_status()
73 if res:
74 return json_response(False, msg=res)
75 else:
76 return json_response(True, msg="绑定成功")
77
78
79 def del_node(self, get):

Callers

nothing calls this directly

Calls 4

app_bind_statusMethod · 0.95
json_responseFunction · 0.90
ServerNodeClass · 0.90
from_dictMethod · 0.45

Tested by

no test coverage detected