添加接口返回
This commit is contained in:
parent
5508f274a9
commit
c5bf89ee1d
@ -97,3 +97,4 @@ class Build_Gamelog_Config():
|
|||||||
log.info("deploy config 2 gamelog success!")
|
log.info("deploy config 2 gamelog success!")
|
||||||
else:
|
else:
|
||||||
log.error("deploy config failed!")
|
log.error("deploy config failed!")
|
||||||
|
raise Exception("deploy config failed!")
|
||||||
|
8
web.py
8
web.py
@ -36,8 +36,12 @@ class DispatchHandler(tornado.web.RequestHandler):
|
|||||||
self._selfupJumpRecording()
|
self._selfupJumpRecording()
|
||||||
|
|
||||||
def _selfgamelogexternal(self):
|
def _selfgamelogexternal(self):
|
||||||
cc = Build_Gamelog_Config()
|
try:
|
||||||
cc.run()
|
cc = Build_Gamelog_Config()
|
||||||
|
cc.run()
|
||||||
|
except Exception:
|
||||||
|
return self.write({'errcode': 2, "errmsg": 'Failed'})
|
||||||
|
return self.write({'errcode': 0, "errmsg": ''})
|
||||||
|
|
||||||
def selfxxx(self):
|
def selfxxx(self):
|
||||||
pass
|
pass
|
||||||
|
Loading…
x
Reference in New Issue
Block a user