提交 091c1ecb 作者: jiangjituo

m

上级 7267908d
# H5 SDK 对接文档-v1.0 # H5 SDK 对接文档-v1.0
...@@ -560,6 +560,7 @@ sdk.updateRole(config:Object) ...@@ -560,6 +560,7 @@ sdk.updateRole(config:Object)
> |         server_name | true | String | - | 区服名称 | > |         server_name | true | String | - | 区服名称 |
> |         cp_role_id | true | String | - | 游戏方角色ID | > |         cp_role_id | true | String | - | 游戏方角色ID |
> |         role_name | true | String | - | 游戏角色名称 | > |         role_name | true | String | - | 游戏角色名称 |
> |         cp_account | true | String | - | cp方玩家账号 | |
> |         role_level | true | Int | - | 角色等级 | > |         role_level | true | Int | - | 角色等级 |
> |         role_vip | false | Int | 0 | 角色VIP等级 | > |         role_vip | false | Int | 0 | 角色VIP等级 |
> |         combat_num | false | Int | 0 | 角色战力 | > |         combat_num | false | Int | 0 | 角色战力 |
...@@ -597,7 +598,8 @@ sdk.updateRole(config:Object) ...@@ -597,7 +598,8 @@ sdk.updateRole(config:Object)
> role_level: '100', > role_level: '100',
> role_vip: '7', > role_vip: '7',
> combat_num: '100', > combat_num: '100',
> online_time: '10' > online_time: '10',
> cp_account:'玩家账号'
> } > }
> }) > })
> //回调通知需要在初始化时注册 > //回调通知需要在初始化时注册
...@@ -724,4 +726,4 @@ sdk.checkOrder({ ...@@ -724,4 +726,4 @@ sdk.checkOrder({
} }
}) })
//回调通知需要在初始化时注册 //回调通知需要在初始化时注册
``` ```
\ No newline at end of file
# 游戏 SDK 对接文档-v1.0.2 # 游戏 SDK 对接文档-v1.0.2
...@@ -877,7 +877,8 @@ zwsdk.updateRole(config:Object) ...@@ -877,7 +877,8 @@ zwsdk.updateRole(config:Object)
> |         server_id | true | String | - | 区服 ID | > |         server_id | true | String | - | 区服 ID |
> |         server_name | true | String | - | 区服名称 ID | > |         server_name | true | String | - | 区服名称 ID |
> |         cp_role_id | true | String | - | CP 角色 ID | > |         cp_role_id | true | String | - | CP 角色 ID |
> |         role_name | true | String | - | CP 角色名称 | > |         role_name | true | String | - | CP 角色名称
> |         cp_account | true | String | - | cp方玩家账号 | |
> |         role_level | true | String | - | 角色等级 ID | > |         role_level | true | String | - | 角色等级 ID |
> |         role_vip | true | String | - | 角色 VIP 等级 ID | > |         role_vip | true | String | - | 角色 VIP 等级 ID |
> |         combat_num | true | String | - | 角色战力 ID | > |         combat_num | true | String | - | 角色战力 ID |
...@@ -920,7 +921,8 @@ zwsdk ...@@ -920,7 +921,8 @@ zwsdk
role_level: '140', role_level: '140',
role_vip: '7', role_vip: '7',
combat_num: '1500000', combat_num: '1500000',
online_time: '0' online_time: '0',
cp_account:'玩家账号'
} }
}) })
.then((res) => { .then((res) => {
......
# 服务端接口说明-v1.0.0 # 服务端接口说明-v1.0.0
...@@ -186,6 +186,7 @@ ...@@ -186,6 +186,7 @@
> |         role_vip | false | String | 0 | 角色VIP等级 | > |         role_vip | false | String | 0 | 角色VIP等级 |
> |         server_id | true | String | - | 区服ID | > |         server_id | true | String | - | 区服ID |
> |         server_name | true | String | - | 区服名称 | > |         server_name | true | String | - | 区服名称 |
> |         cp_account | true | String | - | cp方玩家账号 |
> | sign | true | String | - | 签名 | > | sign | true | String | - | 签名 |
##### 返回参数 ##### 返回参数
...@@ -230,7 +231,9 @@ ...@@ -230,7 +231,9 @@
"role_vip" => "0",//角色vip等级 "role_vip" => "0",//角色vip等级
"combat_num" => "0",//角色战力值 "combat_num" => "0",//角色战力值
"online_time" => "0",//角色在线时长,单位为秒 "online_time" => "0",//角色在线时长,单位为秒
]]; "cp_account" =>"玩家账号"//玩家账号
]
];
$body["sign"] = makeSign($body, $gameSecret); $body["sign"] = makeSign($body, $gameSecret);
$headers = ["Content-Type:application/json"]; $headers = ["Content-Type:application/json"];
$response = curl_post($url, $body, $hearders); $response = curl_post($url, $body, $hearders);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论