This commit is contained in:
pengtao 2019-09-24 15:48:44 +08:00
parent 58b00a2852
commit 716bad8a91
2 changed files with 10 additions and 8 deletions

View File

@ -131,12 +131,13 @@ http://spread-test.kingsome.cn/webapp/index.php
##### 请求方式post
##### 请求示范
上传列表压缩过程
'''
let aidStr = JSON.stringify(aids);
let url = `${__getUrl()}?c=Ops&a=upAdRecording&adid=${encodeURIComponent(aidStr)}`
'''
body= {
"gameid": 1001,
"locationid": 1078,
"uid": "miles.peng",
"ad_channel": "ssfd1",
"adid": 2234
}
https://spread-test.kingsome.cn/webapp/index.php?c=Ops&a=upJumpRecording
@ -167,4 +168,5 @@ https://spread-test.kingsome.cn/webapp/index.php?c=Ops&a=upJumpRecording
{
"errcode": 0,
"errmsg": "",
"message": "1002 incr success!"
"message": ""
}

View File

@ -95,7 +95,7 @@ class DispatchHandler(tornado.web.RequestHandler):
tga_data['date'] = datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")
tga_data['locationid'] = locationid
tga_data['adid'] = adid
print(f"{tga_data}")
self.tga.put_event_data(tga_data, f'rep_{self.event_type}')
return self.write({'errcode': 0, "errmsg": '', "message": ""})
except Exception: