From 6e7687550593971e56787f80b7b93676d83154f4 Mon Sep 17 00:00:00 2001 From: pengtao Date: Thu, 15 Aug 2019 16:39:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B9=E6=B3=95=E5=AD=97=E6=AE=B5=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E6=B7=BB=E5=8A=A0=E6=98=AF=E5=90=A6=E9=9C=80=E8=A6=81?= =?UTF-8?q?=E6=8E=92=E5=BA=8F=E5=AD=97=E6=AE=B5=EF=BC=88=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E4=B8=BA0=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Readme.md | 2 +- data_collect_interface.py | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Readme.md b/Readme.md index 4094474..8a508cc 100644 --- a/Readme.md +++ b/Readme.md @@ -83,7 +83,7 @@ http://154.8.214.202:5022/webapp/index.php?c=Ops&a=getreport&gameid=2001&channel | gameid | string | 是 | 查询的游戏ID | | channelid | string | 否 | 查询的平台ID,默认为6001 | | methods | string | 是 | 默认为6001(微信) | -| date | datetime | 是 | 查询的报表数据(格式为“2019-08-12”) | +| times | string | 是 | 查询的报表数据(格式为“2019-08-12”) | ##### 返回参数说明 diff --git a/data_collect_interface.py b/data_collect_interface.py index c871e92..20e63df 100644 --- a/data_collect_interface.py +++ b/data_collect_interface.py @@ -48,12 +48,14 @@ class DispatchHandler(tornado.web.RequestHandler): sql = f"""SELECT a.method_name, a.method_display, + a.need_sort, b.fields, b.comment FROM (SELECT method_name, - method_display + method_display, + need_sort FROM methods WHERE @@ -74,7 +76,7 @@ class DispatchHandler(tornado.web.RequestHandler): for line in data: temp = {} try: - temp['methods'], temp['method_display'],temp['fields'], temp['comment'] = line + temp['methods'], temp['method_display'],temp['need_sort'],temp['fields'], temp['comment'] = line output.append(temp) except Exception: log.error(f"split {line} error, get data from methods!", exc_info=True)