添加接口返回

This commit is contained in:
pengtao 2019-10-14 14:09:53 +08:00
parent 5508f274a9
commit c5bf89ee1d
2 changed files with 7 additions and 2 deletions

View File

@ -97,3 +97,4 @@ class Build_Gamelog_Config():
log.info("deploy config 2 gamelog success!")
else:
log.error("deploy config failed!")
raise Exception("deploy config failed!")

8
web.py
View File

@ -36,8 +36,12 @@ class DispatchHandler(tornado.web.RequestHandler):
self._selfupJumpRecording()
def _selfgamelogexternal(self):
cc = Build_Gamelog_Config()
cc.run()
try:
cc = Build_Gamelog_Config()
cc.run()
except Exception:
return self.write({'errcode': 2, "errmsg": 'Failed'})
return self.write({'errcode': 0, "errmsg": ''})
def selfxxx(self):
pass