添加hoh8的文档
This commit is contained in:
parent
f4d92336c7
commit
f27a42b75c
72
docs/hoh8.md
Normal file
72
docs/hoh8.md
Normal file
@ -0,0 +1,72 @@
|
||||
# 玛丽娱乐小程序抓取文档
|
||||
|
||||
|
||||
## 说明
|
||||
所有数据采用长连接
|
||||
|
||||
地址为
|
||||
```
|
||||
wss://game.hoh8.cn/hh/websocket?userId=${uid}&token=${token}&roomId=0&groupId=global
|
||||
```
|
||||
|
||||
uid和token需从小程序抓取,每次重新授权后,token变化
|
||||
|
||||
## 游戏列表
|
||||
|
||||
```
|
||||
{"path":"/hg/getGameList","body":"{\\"pageNum\\":0,\\"kw\\":\\"\\"}","reqId":"gamelist000${id}"}
|
||||
```
|
||||
|
||||
pageNum 为分页, 从0开始
|
||||
|
||||
## 游戏详情
|
||||
|
||||
```
|
||||
{"path":"/hg/getGameDtl.page","body":"{\\"gameId\\":\\"${record.id}\\"}","reqId":"gameinfo${record.id}"}
|
||||
```
|
||||
gameId: 游戏的id
|
||||
|
||||
|
||||
## 电影列表
|
||||
|
||||
```
|
||||
{"path":"/video/searchVideoList","body":"{\\"pageNum\\":${id},\\"kw\\":null,\\"type\\":\\"所有类型\\",\\"region\\":\\"所有地区\\",\\"date\\":\\"所有年代\\"}","reqId":"movielist000${id}"}
|
||||
```
|
||||
|
||||
pageNum 为分页, 从0开始
|
||||
|
||||
## 电影详情
|
||||
|
||||
```
|
||||
{"path":"/video/getVideoDtl.page","body":"{\\"id\\":\\"${record.data.id}\\"}","reqId":"movieinfo${record.id}"}
|
||||
```
|
||||
|
||||
id 为电影的id
|
||||
|
||||
## 获取观看广告的token
|
||||
用于更新用户余额
|
||||
|
||||
```
|
||||
{"path":"/deal/getVideoADToken","body":"{}","reqId":"videotoken${id}"}
|
||||
```
|
||||
|
||||
## 更新余额接口
|
||||
|
||||
method: POST
|
||||
|
||||
Content-Type: application/x-www-form-urlencoded;charset=UTF-8'
|
||||
|
||||
https://game.hoh8.cn/hh/deal/getVideoADReward.anon
|
||||
|
||||
参数:
|
||||
|
||||
```js
|
||||
let jsonData = {"appId": appId,"appName":appName,"token":videoToken,"userId":uid};
|
||||
let data = {
|
||||
deviceType: 5,
|
||||
appVersion: 1,
|
||||
jsonData: JSON.stringify(jsonData)
|
||||
}
|
||||
```
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user