This commit is contained in:
pengtao 2019-09-24 15:23:26 +08:00
parent c7fecc7329
commit 97eb9f75b0

View File

@ -51,7 +51,13 @@ class DispatchHandler(tornado.web.RequestHandler):
| adid | int | | 广告ID |
"""
try:
post_data = self.request.body_arguments
post_data = {x: post_data.get(x)[0].decode("utf-8") for x in post_data.keys()}
if not post_data:
post_data = self.request.body.decode('utf-8')
post_data = json.loads(post_data)
print(post_data)
pdb.set_trace()
gameid = self.get_query_argument('gameid')
locationid = self.get_query_argument('locationid')
uid = self.get_query_argument('uid')