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 ##### 请求方式post
##### 请求示范 ##### 请求示范
body= {
上传列表压缩过程 "gameid": 1001,
''' "locationid": 1078,
let aidStr = JSON.stringify(aids); "uid": "miles.peng",
let url = `${__getUrl()}?c=Ops&a=upAdRecording&adid=${encodeURIComponent(aidStr)}` "ad_channel": "ssfd1",
''' "adid": 2234
}
https://spread-test.kingsome.cn/webapp/index.php?c=Ops&a=upJumpRecording 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, "errcode": 0,
"errmsg": "", "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['date'] = datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")
tga_data['locationid'] = locationid tga_data['locationid'] = locationid
tga_data['adid'] = adid tga_data['adid'] = adid
print(f"{tga_data}")
self.tga.put_event_data(tga_data, f'rep_{self.event_type}') self.tga.put_event_data(tga_data, f'rep_{self.event_type}')
return self.write({'errcode': 0, "errmsg": '', "message": ""}) return self.write({'errcode': 0, "errmsg": '', "message": ""})
except Exception: except Exception: