Toggle navigation
Toggle navigation
This project
Loading...
Sign in
youyu
/
web_sdk
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
chufan
2017-07-06 04:07:24 +0000
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
be46c0496b89d56d7bbed2703128c84e4764669b
be46c049
1 parent
f92ca335
Update README.md
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
33 deletions
README.md
README.md
View file @
be46c04
...
...
@@ -3,7 +3,9 @@
##### 1.1.1 登录接口(必接)
1、请求地址:http://gameurl/ (游戏入口地址,游戏方提供)
2、请求方式:get 由我方平台iframe跳转至游戏地址
3、请求参数:
```
...
...
@@ -18,16 +20,20 @@ is_favorite:是否收藏(0:未收藏,1:已收藏),收藏功能用于
##### 1.1.2 调试测试地址
1、请求地址:http://m.uuufish.com/game/play/h5/{{app_id}}.html
1、请求地址:http://m.uuufish.com/game/play/h5/{{app_id}}.html
2、请求方式:app_id 由我方提供
可传参数:GET/POST

登录成功后,会跳转回指定的URL并通过GET方式携带以下参数

Token生成规则:
1.
待签名拼串: open_idd + ‘&’ + timestamp + ‘&’ + app_server_key(计算时无+号)
2.
MD5后转小写
...
...
@@ -196,35 +202,3 @@ Token生成规则:
调用查询接口方法: haibaosdk. enterGame (roleData)
#### 2.1.6 open事件接口(必接)
1、请求参数:
```
open_id:用户open_id,
server_id:服务器id,
server_name:服务器名称
role_id:角色id
role_name:角色昵称
```
2、请求方式:
```
var roleData = {
open_id:"123456789abc",
server_id:"123456789abc",
server_name: "123456789abc"
role_id: "123456789abc"
role_name: "123456789abc"
};
```
调用查询接口方法: haibaosdk. enterGame (roleData)
...
...
Please
register
or
login
to post a comment