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

Method bind_app

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

Source from the content-addressed store, hash-verified

49
50 @staticmethod
51 def bind_app(get):
52 n, err = Node.from_dict(get)
53 if not n:
54 return json_response(False, msg=err)
55 if not n.app_key:
56 return json_response(False, msg="请指定要绑定的app秘钥")
57 srv = ServerNode("", "", n.app_key)
58 res = srv.app_bind()
59 if res:
60 return json_response(False, msg=res)
61 else:
62 return json_response(True, msg="绑定请求已发出")
63
64 @staticmethod
65 def bind_app_status(get):

Callers

nothing calls this directly

Calls 4

app_bindMethod · 0.95
json_responseFunction · 0.90
ServerNodeClass · 0.90
from_dictMethod · 0.45

Tested by

no test coverage detected