提交 1e80ef66 作者: 黄程泽

合并分支 'release' 到 'master'

服务端角色上报

查看合并请求 zwwl/zw_game_sdk!12
# 服务端接口说明-v1.0.1
# 服务端接口说明-v1.0.1
......@@ -171,28 +171,28 @@
> **Body:**
>
> | 参数 | 必选 | 类型 | 默认值 | 说明 |
> | :----------------------------------------------------------- | :---- | :----- | :----- | :----------------------------------------- |
> | game_id | false | Int | - | 游戏的game_id Android 环境必须给 2022-03-25 android 新增 |
> | player_id | true | Int | - | 游戏登录后由 SDK 返回的player_id |
> | type | true | Int | 1 | 游戏角色操作环境,1:H5网页端,2:小游戏端 |
> | os | false | String | - | 操作系统 |
> | role | true | Object | - | 角色信息 |
> |         combat_num | false | String | 0 | 角色战力 |
> |         cp_role_id | true | String | - | 游戏方角色ID |
> |         event | true | String | - | 事件类型 |
> |         online_time | false | String | 0 | 本次在线时长 |
> |         role_level | true | String | - | 角色等级 |
> |         role_name | true | String | - | 游戏角色名称 |
> |         role_vip | false | String | 0 | 角色VIP等级 |
> |         server_id | true | String | - | 区服ID |
> |         server_name | true | String | - | 区服名称 |
> |         attack | false | Int | 0 | 攻击力 |
> |         profession | false | String | - | 职业 |
> |         gang_name | false | String | - | 帮会(行会)名称 |
> |         trans_level | false | Int | 0 | 转生等级 |
> |         sponsor_level | false | Int | 0 | 赞助等级/会员等级 |
> | sign | true | String | - | 签名 |
> | 参数 | 必选 | 类型 | 默认值 | 说明 |
> | :----------------------------------------------------------- | :---- | :----- | :----- | :--------------------------------------------------------- |
> | game_id | true | Int | - | 游戏的game_id, 角色当前游戏ID |
> | player_id | true | Int | - | 游戏登录后由 SDK 返回的player_id |
> | type | true | Int | 1 | 游戏角色操作环境,1:H5网页端,2:小游戏端,3:Android游戏 |
> | os | false | String | - | 操作系统 |
> | role | true | Object | - | 角色信息 |
> |         combat_num | false | String | 0 | 角色战力 |
> |         cp_role_id | true | String | - | 游戏方角色ID |
> |         event | true | String | - | 事件类型 |
> |         online_time | false | String | 0 | 本次在线时长 |
> |         role_level | true | String | - | 角色等级 |
> |         role_name | true | String | - | 游戏角色名称 |
> |         role_vip | false | String | 0 | 角色VIP等级 |
> |         server_id | true | String | - | 区服ID |
> |         server_name | true | String | - | 区服名称 |
> |         attack | false | Int | 0 | 攻击力 |
> |         profession | false | String | - | 职业 |
> |         gang_name | false | String | - | 帮会(行会)名称 |
> |         trans_level | false | Int | 0 | 转生等级 |
> |         sponsor_level | false | Int | 0 | 赞助等级/会员等级 |
> | sign | true | String | - | 签名 |
##### 返回参数
......@@ -223,8 +223,9 @@
$checkLoginUrl = '/mini_sdk/role/severReport';
$url = $host.$checkLoginUrl;
$gameSecret = "game_secret";
$body = ["player_id" => 1245,//游戏登录后由 SDK 返回的player_id
"type" => 1,//游戏角色操作环境,1:H5网页端,2:小游戏端
$body = ["game_id" => 121, //角色当前SDK方游戏ID
"player_id" => 1245,//游戏登录后由 SDK 返回的player_id
"type" => 1,//游戏角色操作环境,1:H5网页端,2:小游戏端,3:android游戏
"os" => "windows"//游戏操作系统:windows,android,ios
"role" =>[
"event" => 1,//角色事件类型
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论