qingjie пре 9 месеци
родитељ
комит
75863228e5
4 измењених фајлова са 68 додато и 4 уклоњено
  1. 18 1
      seamless/en/keys.md
  2. 12 1
      seamless/zh/keys.md
  3. 23 1
      transfer/en/keys.md
  4. 15 1
      transfer/zh/keys.md

+ 18 - 1
seamless/en/keys.md

@@ -78,6 +78,23 @@ http://{BesoftFront}/?key=3F6AE577A2E2255EF4BACF02C9F8BB1154A9C6AD2F19701
 
 ```
 
+> New interface: If you need to close the current window directly, please use the window.open mode to open, and do not need to pass the return_url
+
+
+> New interface: If the parameter return_url is added, please encode the parameter in URLEncoding mode
+
+
+> Embedded interface: If it is embedded, please listen for this message notification (closeMessage), the game manufacturer closes the game's call interface
+
+```
+{
+   window.parent.postMessage("closeMessage", "*")
+}
+
+```
+
+
+
 ## Request Parameter
 
 | Name     | Type    | Required    |   Description       | 
@@ -87,7 +104,7 @@ http://{BesoftFront}/?key=3F6AE577A2E2255EF4BACF02C9F8BB1154A9C6AD2F19701
 | aid | string(20) | Y |      Agent Id  |
 | gid | string | Y |      Default launching game; if blank, go to lobby.  |
 | lang | string | Y |      Default is cn;    cn: simplified Chinese      en : english |
-| return_url | string | N |      return_url=Game off return address |
+| return_url | string | N |      return_url=Game off return address,Please encode the parameters in URLEncoding mode |
 ##     Return Result
 {
     "status": 1,

+ 12 - 1
seamless/zh/keys.md

@@ -77,8 +77,19 @@ http://{BesoftFront}/?key=3F6AE577A2E2255EF4BACF02C9F8BB1154A9C6AD2F19701
 568BA675BDA3C46BCA64D243007F87C86119329271708&gid=aa0001&lang=en&return_url=https://returnyoururl.com
 
 ```
+>新开界面:如果需要直接关闭当前窗口,请使用window.open方式打开,并且不需要传入return_url
 
 
+>新开界面:如果加入return_url参数,请以URLEncoding方式编码参数
+
+
+>内嵌界面:如果是内嵌请监听此消息通知(closeMessage),游戏厂商关闭游戏的调用接口
+```
+{
+   window.parent.postMessage("closeMessage", "*")
+}
+
+```
 
 ## 请求参数
 
@@ -89,7 +100,7 @@ http://{BesoftFront}/?key=3F6AE577A2E2255EF4BACF02C9F8BB1154A9C6AD2F19701
 | aid | string(20) | Y |      代理帐号  |
 | gid | string | Y |      预设登入的游戏 ID ;  |
 | lang | string | Y |      默认值为简中 (简中 英文) |
-| return_url | string | N |      return_url=游戏关闭的返回地址 |
+| return_url | string | N |      return_url=游戏关闭的返回地址 ,请以URLEncoding方式编码参数|
 ##  返回结果
 
 ### 成功的结果

+ 23 - 1
transfer/en/keys.md

@@ -75,6 +75,28 @@ http://{BesoftFront}/?key=3F6AE577A2E2255EF4BACF02C9F8BB1154A9C6AD2F19701
 
 ```
 
+> New interface: If you need to close the current window directly, please use the window.open mode to open, and do not need to pass the return_url
+
+
+
+
+> New interface: If the parameter return_url is added, please encode the parameter in URLEncoding mode
+
+
+
+
+> Embedded interface: If it is embedded, please listen for this message notification (closeMessage), the game manufacturer closes the game's call interface
+
+
+```
+{
+   window.parent.postMessage("closeMessage", "*")
+}
+
+
+```
+
+
 ## Request Parameter
 
 | Name     | Type    | Required    |   Description       | 
@@ -85,7 +107,7 @@ http://{BesoftFront}/?key=3F6AE577A2E2255EF4BACF02C9F8BB1154A9C6AD2F19701
 | nick | string (50) | Y |      User name Only Support 16 Unicode characters |
 | gid| Integer | Y|     input gameId as default launch game ; if blank, go to lobby. |
 | lang| string | Y|     default is cn   ,   cn : simplified Chinese     ,   en : english |
-| return_url | string | N |      return_url=Game off return address |
+| return_url | string | N |      return_url=Game off return address,Please encode the parameters in URLEncoding mode  |
 
 ##     Return Result
 

+ 15 - 1
transfer/zh/keys.md

@@ -79,6 +79,20 @@ http://{BesoftFront}/?key=3F6AE577A2E2255EF4BACF02C9F8BB1154A9C6AD2F19701
 568BA675BDA3C46BCA64D243007F87C86119329271708&gid=be001&lang=en&return_url=https://returnyoururl.com
 
 ```
+>新开界面:如果需要直接关闭当前窗口,请使用window.open方式打开,并且不需要传入return_url
+
+
+>新开界面:如果加入return_url参数,请以URLEncoding方式编码参数
+
+
+>内嵌界面:如果是内嵌请监听此消息通知(closeMessage),游戏厂商关闭游戏的调用接口
+```
+{
+   window.parent.postMessage("closeMessage", "*")
+}
+
+```
+
 
 ## 请求参数
 
@@ -90,7 +104,7 @@ http://{BesoftFront}/?key=3F6AE577A2E2255EF4BACF02C9F8BB1154A9C6AD2F19701
 | nick | string (50) | Y |     用户名,最多支持 16 个 Unicode 字节  |
 | gid | Integer | Y |      预设登入的游戏 ID ;  |
 | lang | string | Y |      默认值为简中 (简中 英文) |
-| return_url | string | N |      return_url=游戏关闭的返回地址 |
+| return_url | string | N |      return_url=游戏关闭的返回地址 ,请以URLEncoding方式编码参数|
 ##  返回结果
 
 ### 成功的结果