提交 9b7f0185 作者: 黄程泽

示例

上级 acada410
# 服务端接口说明-v1.0.0
# 服务端接口说明-v1.0.0
......@@ -38,7 +38,7 @@
        请求示例
    2.3 [允许创角](#sec2.3)
    2.3 [是否允许创角](#sec2.3)
        接口说明
......@@ -231,9 +231,8 @@
"combat_num" => "0",//角色战力值
"online_time" => "0",//角色在线时长,单位为秒
]];
$userToken = "user_token";
$body["sign"] = makeSign($body, $gameSecret);
$headers = ["Content-Type:application/json","User-Token:".$userToken];
$headers = ["Content-Type:application/json"];
$response = curl_post($url, $body, $hearders);
}
......@@ -274,7 +273,7 @@
return json_decode($data, true);
}
```
### 2.3 允许创角<a name="sec2.3"></a>
### 2.3 是否允许创角<a name="sec2.3"></a>
##### 接口说明
......@@ -321,9 +320,8 @@
$url = $host.$checkLoginUrl;
$gameSecret = "game_secret";
$body = ["player_id" => 1245,//游戏登录后由 SDK 返回的player_id];
$userToken = "user_token";
$body["sign"] = makeSign($body, $gameSecret);
$headers = ["Content-Type:application/json","User-Token:".$userToken];
$headers = ["Content-Type:application/json"];
$response = curl_post($url, $body, $hearders);
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论