From 716bad8a91f9b2f4513ec2c75cc3f6e00829e354 Mon Sep 17 00:00:00 2001 From: pengtao Date: Tue, 24 Sep 2019 15:48:44 +0800 Subject: [PATCH] fix bug --- ad_Readme.md | 16 +++++++++------- ad_interface_tornado.py | 2 +- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/ad_Readme.md b/ad_Readme.md index eb633b6..9f53218 100644 --- a/ad_Readme.md +++ b/ad_Readme.md @@ -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": "" +} diff --git a/ad_interface_tornado.py b/ad_interface_tornado.py index 914d48f..35c266c 100644 --- a/ad_interface_tornado.py +++ b/ad_interface_tornado.py @@ -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: