提交 5faf9cc7 作者: 刘添

更新 AndroidSDK对接说明文档.md

上级 8b5ec80b
## GameSDKV1.0文档接入使用 ## GameSDKV1.0文档接入使用
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
   1.3、文档中所有GameSDK指SDK初始化获得的对象    1.3、文档中所有GameSDK指SDK初始化获得的对象
&nbsp;&nbsp; 1.4、game_secret可参考服务端对接文档、服务端接入2.1接口规则签名说明<a name="sec1.1"></a>
### 2、对接demo<a name="sec2"></a> ### 2、对接demo<a name="sec2"></a>
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
| 参数名 | 说明 | | 参数名 | 说明 |
|:--------| -------------:| |:--------| -------------:|
| game_id | 游戏唯一标识,由平台方提供 | | game_id | 游戏唯一标识,由平台方提供 |
| game_secret | 服务端签名 |
...@@ -118,6 +118,27 @@ void loginSuccess(Object data); ...@@ -118,6 +118,27 @@ void loginSuccess(Object data);
``` ```
> **登录成功返回参数**:
| 参数 | 类型 | 说明 |
| :-------- | -------------: | -------------: |
| status_code | int| 状态码、1成功 |
| data| object | 返回数据 |
| message| String| 描述信息 |
| data| object | 返回数据 |
| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; data | object | 返回数据 |
| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; member_id | String | 用户Id |
| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; player_id | String | 玩家ID |
| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; username | String | 用户名 |
| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; user_token | String | token |
| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; avatar | String | 用户头像 |
| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mobile | String | 手机号 |
| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; has_identify | boolean | 是否实名 |
| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; need_identification | String | 1强制实名,2需要实名但不强制,3不需要实名 |
| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; has_mobile | boolean | 是否绑定手机 |
> **登录失败**: > **登录失败**:
``` ```
...@@ -380,11 +401,10 @@ public void exitApp(ExitAppListener listener) ...@@ -380,11 +401,10 @@ public void exitApp(ExitAppListener listener)
### 12 demo依赖说明<a name="sec12"></a> ### 12 demo依赖说明<a name="sec12"></a>
1、打包arr依赖OKhttp3与Glide库需要在主工程中添加依赖 1、打包arr依Glide库需要在主工程中添加依赖
``` ```
implementation 'com.squareup.okhttp3:okhttp:3.4.1'
implementation 'com.squareup.okhttp3:logging-interceptor:3.4.1'
api 'com.github.bumptech.glide:glide:4.11.0' api 'com.github.bumptech.glide:glide:4.11.0'
``` ```
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论