mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
update
This commit is contained in:
@@ -164,6 +164,14 @@ def getJson(data):
|
||||
return json.dumps(data)
|
||||
|
||||
|
||||
def retOK(msg, data):
|
||||
return returnJson(True, msg, data)
|
||||
|
||||
|
||||
def retFail(msg, data):
|
||||
return returnJson(False, msg, data)
|
||||
|
||||
|
||||
def returnJson(status, msg, args=()):
|
||||
# 取通用Json返回
|
||||
return getJson(returnMsg(status, msg, args))
|
||||
|
||||
@@ -21,8 +21,11 @@ class system_api:
|
||||
def __init__(self):
|
||||
self.setupPath = public.getServerDir()
|
||||
|
||||
def network_api(self):
|
||||
print "ok-network_api"
|
||||
##### ----- start ----- ###
|
||||
def network(self):
|
||||
return self.getNetWork()
|
||||
|
||||
##### ----- end ----- ###
|
||||
|
||||
# 名取PID
|
||||
def getPid(self, pname):
|
||||
|
||||
Reference in New Issue
Block a user