add user_online interface
This commit is contained in:
parent
7cccc315a0
commit
61011ed639
15
web.py
15
web.py
@ -27,7 +27,6 @@ tornado.options.define("port", default=interface_port, type=int, help="run serve
|
||||
class DispatchHandler(tornado.web.RequestHandler):
|
||||
@gen.coroutine
|
||||
def get(self):
|
||||
print(f"get {self.get_argument()}")
|
||||
if self.get_query_argument('c') == 'Ops' and self.get_query_argument('a') == 'sync_log_conf':
|
||||
print("start sync_log_conf! ")
|
||||
self._selfgamelogexternal()
|
||||
@ -43,13 +42,13 @@ class DispatchHandler(tornado.web.RequestHandler):
|
||||
else:
|
||||
self.write("pls check args!")
|
||||
|
||||
@gen.coroutine
|
||||
def post(self):
|
||||
print(f"post {self.get_argument()}")
|
||||
log.info(f"get requests {self.request.body_arguments}")
|
||||
if self.get_query_argument('c') == 'Ops' and self.get_query_argument('a') == 'user_online':
|
||||
print(f"get user_online get")
|
||||
self._user_online()
|
||||
# @gen.coroutine
|
||||
# def post(self):
|
||||
# print(f"post {self.get_argument()}")
|
||||
# log.info(f"get requests {self.request.body_arguments}")
|
||||
# if self.get_query_argument('c') == 'Ops' and self.get_query_argument('a') == 'user_online':
|
||||
# print(f"get user_online get")
|
||||
# self._user_online()
|
||||
|
||||
def _user_online(self):
|
||||
post_data = self.request.body_arguments
|
||||
|
Loading…
x
Reference in New Issue
Block a user