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)