This commit is contained in:
root 2019-08-14 15:42:39 +08:00
commit 15d61b2b1b

View File

@ -1,11 +1,18 @@
数据展示接口
#### 0、检查检查
##### 接口地址
##### 请求方式get
##### 请求示范
http://154.8.214.202:5022/webapp/index.php?c=Ops&a=selfChecking
##### 返回示例
{"errcode":0,"errmsg":"","healthy":1,"max_rundelay":10}
#### 1、返回可用的数据方法按gameid排查及返回方法的字段定义
##### 接口地址
http://154.8.214.202:5015/interface/company
http://154.8.214.202:5022/webapp/index.php
##### 返回格式json
@ -13,7 +20,7 @@ http://154.8.214.202:5015/interface/company
##### 请求示范
http://154.8.214.202:5015/interface/company?status=0
http://154.8.214.202:5022/webapp/index.php?c=Ops&a=getmethods&gameid=2001&channelid=6001
##### 请求参数说明
@ -32,7 +39,27 @@ http://154.8.214.202:5015/interface/company?status=0
| methods_name | String | 是 | 方法显示名 |
| result | json | 是 | 方法明细字段名称及显示名 |
{
"errcode": 0,
"errmsg": "",
"result": [
{
"methods": "tap_2001",
"fields": "name",
"comment": "点击按钮名称"
},
{
"methods": "tap_2001",
"fields": "num",
"comment": "次数"
},
{
"methods": "tap_2001",
"fields": "dis_num",
"comment": "人数"
}
]
}
#### 2、按方法和日期返回某天的数据
##### 接口地址
@ -45,7 +72,7 @@ http://154.8.214.202:5015/interface/company
##### 请求示范
http://154.8.214.202:5015/interface/company?status=0
http://154.8.214.202:5022/webapp/index.php?c=Ops&a=getreport&gameid=2001&channelid=6001&methods=tap_2001&times=2019-08-13
##### 请求参数说明
@ -67,28 +94,44 @@ http://154.8.214.202:5015/interface/company?status=0
| methods_name | String | 是 | 方法显示名 |
##### 返回示例
{
"code": 200,
"message": [
{
"appid": "BKadJbmZ",
"appkey": "undefined",
"contact": "pt",
"id": "1001",
"name": "kings",
"status": 0,
"tel": "1234",
"user": "None"
}
]
"errcode": 0,
"errmsg": "",
"result": [
"{\"name\": \"金币获取\", \"num\": 1671, \"dis_num\": 865}",
"{\"name\": \"组队模式\", \"num\": 1240, \"dis_num\": 500}",
"{\"name\": \"宝箱\", \"num\": 86, \"dis_num\": 55}",
"{\"name\": \"角色\", \"num\": 1649, \"dis_num\": 649}",
"{\"name\": \"签到领取\", \"num\": 944, \"dis_num\": 944}",
"{\"name\": \"单人模式\", \"num\": 4595, \"dis_num\": 1095}",
"{\"name\": \"观看视频试用皮肤按钮\", \"num\": 40, \"dis_num\": 22}",
"{\"name\": \"跳伞\", \"num\": 4630, \"dis_num\": 1070}",
"{\"name\": \"任务\", \"num\": 1120, \"dis_num\": 508}",
"{\"name\": \"战斗结束看视频翻倍按钮\", \"num\": 156, \"dis_num\": 69}",
"{\"name\": \"角色满级体验\", \"num\": 37, \"dis_num\": 33}",
"{\"name\": \"组队开始游戏\", \"num\": 1117, \"dis_num\": 421}",
"{\"name\": \"福利\", \"num\": 29, \"dis_num\": 27}",
"{\"name\": \"战斗结束\", \"num\": 4417, \"dis_num\": 1047}",
"{\"name\": \"等待区域\", \"num\": 5520, \"dis_num\": 1202}",
"{\"name\": \"邀请\", \"num\": 44, \"dis_num\": 39}",
"{\"name\": \"Join成功\", \"num\": 5524, \"dis_num\": 1203}",
"{\"name\": \"排行榜\", \"num\": 73, \"dis_num\": 64}",
"{\"name\": \"武器\", \"num\": 819, \"dis_num\": 396}",
"{\"name\": \"登录按钮\", \"num\": 5026, \"dis_num\": 1459}",
"{\"name\": \"商城\", \"num\": 569, \"dis_num\": 265}",
"{\"name\": \"进入游戏主界面\", \"num\": 6366, \"dis_num\": 1323}",
"{\"name\": \"链接成功\", \"num\": 5643, \"dis_num\": 1209}",
"{\"name\": \"签到双倍领取\", \"num\": 254, \"dis_num\": 254}",
"{\"name\": \"武器满级体验\", \"num\": 47, \"dis_num\": 31}",
"{\"name\": \"战斗链接\", \"num\": 5733, \"dis_num\": 1234}"
]
}
#### 3、按方法和日期返回某段时间的数据
##### 接口地址
http://154.8.214.202:5015/interface/company
http://154.8.214.202:5022/webapp/index.php?c=Ops&a=getreport&gameid=2001&channelid=6001&methods=tap_2001&times=2019-08-13
##### 返回格式json