This commit is contained in:
pengtao 2019-09-24 15:19:56 +08:00
parent 07331b8ce2
commit c7fecc7329
2 changed files with 6 additions and 5 deletions

View File

@ -150,7 +150,7 @@ https://spread-test.kingsome.cn/webapp/index.php?c=Ops&a=upJumpRecording
| locationid | int | 是 | 广告位置ID |
| uid | int | 是 | 用户ID或微信openid |
| ad_channel | int | 是 | 广告特征码 见上ad_property.jump_param |
| aid | int | 是 | 广告ID |
| adid | int | 是 | 广告ID |
##### 返回参数说明

View File

@ -48,15 +48,16 @@ class DispatchHandler(tornado.web.RequestHandler):
| locationid | int | | 广告位置ID |
| uid | int | | 用户ID或微信openid |
| ad_channel | int | | 广告特征码 见上ad_property.jump_param |
| aid | int | | 广告ID |
| adid | int | | 广告ID |
"""
try:
gameid = self.get_query_argument('gameid')
locationid = self.get_query_argument('locationid')
uid = self.get_query_argument('uid')
ad_channel = self.get_query_argument('ad_channel')
aid = self.get_query_argument('aid')
adid = self.get_query_argument('adid')
print(f"gameid={gameid},locationid={locationid},uid={uid},ad_channel={ad_channel},aid={aid}")
except Exception as e:
result = {'errcode': 2, "errmsg": f"get args failed,{str(e)}"}
log.error(result)
@ -89,7 +90,7 @@ class DispatchHandler(tornado.web.RequestHandler):
tga_data['gameid'] = gameid
tga_data['date'] = datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")
tga_data['locationid'] = locationid
tga_data['aid'] = aid
tga_data['adid'] = adid
self.tga.put_event_data(tga_data, f'rep_{self.event_type}')
return self.write({'errcode': 0, "errmsg": '', "message": ""})