fix bug
This commit is contained in:
parent
97eb9f75b0
commit
70f4dffc4b
@ -50,20 +50,19 @@ class DispatchHandler(tornado.web.RequestHandler):
|
|||||||
| ad_channel | int | 是 | 广告特征码 见上ad_property.jump_param |
|
| ad_channel | int | 是 | 广告特征码 见上ad_property.jump_param |
|
||||||
| adid | int | 是 | 广告ID |
|
| adid | int | 是 | 广告ID |
|
||||||
"""
|
"""
|
||||||
|
pdb.set_trace()
|
||||||
try:
|
try:
|
||||||
post_data = self.request.body_arguments
|
post_data = self.request.body_arguments
|
||||||
post_data = {x: post_data.get(x)[0].decode("utf-8") for x in post_data.keys()}
|
post_data = {x: post_data.get(x)[0].decode("utf-8") for x in post_data.keys()}
|
||||||
if not post_data:
|
if not post_data:
|
||||||
post_data = self.request.body.decode('utf-8')
|
post_data = self.request.body.decode('utf-8')
|
||||||
post_data = json.loads(post_data)
|
post_data = json.loads(post_data)
|
||||||
print(post_data)
|
gameid = post_data['gameid']
|
||||||
pdb.set_trace()
|
locationid = post_data['locationid']
|
||||||
gameid = self.get_query_argument('gameid')
|
uid = post_data['uid']
|
||||||
locationid = self.get_query_argument('locationid')
|
ad_channel = post_data['ad_channel']
|
||||||
uid = self.get_query_argument('uid')
|
adid = post_data['adid']
|
||||||
ad_channel = self.get_query_argument('ad_channel')
|
print(f"gameid={gameid},locationid={locationid},uid={uid},ad_channel={ad_channel},adid={adid}")
|
||||||
adid = self.get_query_argument('adid')
|
|
||||||
print(f"gameid={gameid},locationid={locationid},uid={uid},ad_channel={ad_channel},aid={aid}")
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
result = {'errcode': 2, "errmsg": f"get args failed,{str(e)}"}
|
result = {'errcode': 2, "errmsg": f"get args failed,{str(e)}"}
|
||||||
log.error(result)
|
log.error(result)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user