提交 3de2f275 作者: 陈晨

commit

上级 1b62233b
## ZYouSDK V1.0.0文档接入使用 ## ZYouSDK V1.0.0文档接入使用
...@@ -49,6 +49,8 @@ ...@@ -49,6 +49,8 @@
|:--------| -------------:| |:--------| -------------:|
| game_id | 游戏唯一标识,由平台方提供 | | game_id | 游戏唯一标识,由平台方提供 |
| main_game_id | 主游戏id,由平台方提供 | | main_game_id | 主游戏id,由平台方提供 |
| GIDClientID | 谷歌客户端id,由平台方提供 |
| googleScheme | 谷歌iOS 网址架构,由平台方提供 |
|game_secret|游戏签名密钥,服务端对接时会用到,由平台方提供| |game_secret|游戏签名密钥,服务端对接时会用到,由平台方提供|
> **内购说明**: > **内购说明**:
...@@ -95,7 +97,7 @@ fb-messenger-share-api ...@@ -95,7 +97,7 @@ fb-messenger-share-api
![example3.png](https://zhangsheng-1300623068.cos.ap-guangzhou.myqcloud.com/example3.png) ![example3.png](https://zhangsheng-1300623068.cos.ap-guangzhou.myqcloud.com/example3.png)
   3.9、根据提供的参数在 info.plist 配置 URL types 和 GIDClientID 如图    3.9、根据提供的参数在 info.plist 配置 URL types 和 GIDClientID 如图,URL types配置URL Schemes 为googleScheme
![ios_overseas5.png](https://zyapk.zwnet.cn/ios_overseas/ios_overseas5.png) ![ios_overseas5.png](https://zyapk.zwnet.cn/ios_overseas/ios_overseas5.png)
![ios_overseas6.png](https://zyapk.zwnet.cn/ios_overseas/ios_overseas6.png) ![ios_overseas6.png](https://zyapk.zwnet.cn/ios_overseas/ios_overseas6.png)
...@@ -372,7 +374,7 @@ app启动时调用注册sdk 在AppDelegate文件中#import "ZYouTool.h" ...@@ -372,7 +374,7 @@ app启动时调用注册sdk 在AppDelegate文件中#import "ZYouTool.h"
> >
> | 参数 | 必选 | 类型 | 默认值 | 说明 | > | 参数 | 必选 | 类型 | 默认值 | 说明 |
> | --------- | ---- | ------ | ------ | ---------------------------------- | > | --------- | ---- | ------ | ------ | ---------------------------------- |
> | game_id | true | Int | - | 从user_token中取,#后面的数字即为game_id| > | game_id | true | Int | - | 游戏接入时分配的游戏ID(建议从user_token中取,#后面的数字即为game_id)|
> | player_id | true | Int | - | 小游戏登录后由 SDK 返回的player_id | > | player_id | true | Int | - | 小游戏登录后由 SDK 返回的player_id |
> | sign | true | String | - | 参数签名 | > | sign | true | String | - | 参数签名 |
...@@ -402,7 +404,7 @@ app启动时调用注册sdk 在AppDelegate文件中#import "ZYouTool.h" ...@@ -402,7 +404,7 @@ app启动时调用注册sdk 在AppDelegate文件中#import "ZYouTool.h"
$userToken = "user_token"; $userToken = "user_token";
$body["sign"] = makeSign($body, $gameSecret); $body["sign"] = makeSign($body, $gameSecret);
$headers = ["Content-Type:application/json","User-Token:".$userToken]; $headers = ["Content-Type:application/json","User-Token:".$userToken];
$response = curl_post($url, $body, $headers); $response = curl_post($url, $body, $hearders);
} }
public function makeSign($params,$gameSecret){ public function makeSign($params,$gameSecret){
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论