فهرست منبع

bcwin分支,

qingjie 5 ماه پیش
والد
کامیت
e17bf79e8e
4فایلهای تغییر یافته به همراه82 افزوده شده و 88 حذف شده
  1. 3 4
      seamless/en/keys.md
  2. 2 3
      seamless/zh/keys.md
  3. 42 42
      transfer/en/keys.md
  4. 35 39
      transfer/zh/keys.md

+ 3 - 4
seamless/en/keys.md

@@ -52,7 +52,7 @@
 {
     "status": 1,
     "key": "50iD5lzhlTAJqJepJcz4PWohVW0uXYwhTtMeixqdsgcT4ErSso9i17i8AZ247kEZVHO4oVDloDgCjeAulbX       T4I",
-    "returnurl": "http://127.0.0.1:8000/?aid=adminweb&acc=test1&key=50iD5lzhlTAJqJepJcz4PWohVW0uXYwhTtMeixqdsgcT4ErSso9i17i8AZ247kEZVHO4oVDloDgCjeAulbXT4I&one=1"
+    "returnurl": "http://127.0.0.1:8000/?key=50iD5lzhlTAJqJepJcz4PWohVW0uXYwhTtMeixqdsgcT4ErSso9i17i8AZ247kEZVHO4oVDloDgCjeAulbXT4I"
 }
 
 ```
@@ -73,8 +73,7 @@
 
 ##    Method URL
 ```
-http://{BesoftFront}/?key=3F6AE577A2E2255EF4BACF02C9F8BB1154A9C6AD2F19701
-568BA675BDA3C46BCA64D243007F87C86119329271708&gid=aa0001&lang=en&return_url=https://returnyoururl.com
+http://{BesoftFront}/?key=3F6AE577A2E2255EF4BACF02C9F8BB1154A9C6AD2F19701568BA675BDA3C46BCA64D243007F87C86119329271708&gid=aa0001&lang=en&return_url=https://returnyoururl.com
 
 ```
 
@@ -109,7 +108,7 @@ http://{BesoftFront}/?key=3F6AE577A2E2255EF4BACF02C9F8BB1154A9C6AD2F19701
 {
     "status": 1,
     "key": "50iD5lzhlTAJqJepJcz4PWohVW0uXYwhTtMeixqdsgcT4ErSso9i17i8AZ247kEZVHO4oVDloDgCjeAulbXT4I",
-    "returnurl": "http://127.0.0.1:8000/?aid=adminweb&acc=test1&key=50iD5lzhlTAJqJepJcz4PWohVW0uXYwhTtMeixqdsgcT4ErSso9i17i8AZ247kEZVHO4oVDloDgCjeAulbXT4I&one=1"
+    "returnurl": "http://127.0.0.1:8000/?key=50iD5lzhlTAJqJepJcz4PWohVW0uXYwhTtMeixqdsgcT4ErSso9i17i8AZ247kEZVHO4oVDloDgCjeAulbXT4I"
 }
 ###  Successful Result
 

+ 2 - 3
seamless/zh/keys.md

@@ -52,7 +52,7 @@
 {
     "status": 1,
     "key": "50iD5lzhlTAJqJepJcz4PWohVW0uXYwhTtMeixqdsgcT4ErSso9i17i8AZ247kEZVHO4oVDloDgCjeAulbXT4I",
-    "returnurl": "http://127.0.0.1:8000/?aid=adminweb&acc=test1&key=50iD5lzhlTAJqJepJcz4PWohVW0uXYwhTtMeixqdsgcT4ErSso9i17i8AZ247kEZVHO4oVDloDgCjeAulbXT4I&one=1"
+    "returnurl": "http://127.0.0.1:8000/?key=50iD5lzhlTAJqJepJcz4PWohVW0uXYwhTtMeixqdsgcT4ErSso9i17i8AZ247kEZVHO4oVDloDgCjeAulbXT4I"
 }
 
 ```
@@ -73,8 +73,7 @@
 >游戏返回说明:游戏关闭后,返回的地址(return_url=返回地址的参数),如果不填写,游戏没有返回按钮。
 ##  请求地址
 ```
-http://{BesoftFront}/?key=3F6AE577A2E2255EF4BACF02C9F8BB1154A9C6AD2F19701
-568BA675BDA3C46BCA64D243007F87C86119329271708&gid=aa0001&lang=en&return_url=https://returnyoururl.com
+http://{BesoftFront}/?key=3F6AE577A2E2255EF4BACF02C9F8BB1154A9C6AD2F19701568BA675BDA3C46BCA64D243007F87C86119329271708&gid=aa0001&lang=en&return_url=https://returnyoururl.com
 
 ```
 >新开界面:如果需要直接关闭当前窗口,请使用window.open方式打开,并且不需要传入return_url

+ 42 - 42
transfer/en/keys.md

@@ -1,13 +1,12 @@
 # <font >  Get Key</font>
 ## Description
->To obtain a new key for launching the game, provide currency for the initial login. If no account exists, a new account will be created automatically.
+>To get a new key for player to launch game. Need to provide currency for the first login. System will create new account automatically if it does not exist
 
-> Request method:( Host-> BeSoft):post 
+>request method:(Host -> BeSoft):post ;
 
-> Encoding method:application/x-www-form-urlencoded
-
-> Besoft The response data format is: application/json
+>encoding method:application/x-www-form-urlencoded
 
+>Besoft format of the outgoing request data: application/json
 
 ##  Method URL
 >{besoftapi}/api/game/getKey
@@ -18,40 +17,44 @@
 | -------- | -------- | -------- |    -------- |  
 | cert     | string     |   Y |     security code |
 | user      |string (30) |  Y |      unique user id (only allow lower case a-z and 0-9) BY WEBSITE)|
-| extension1 | string(20) | Y |      agent Id from ARS,belong to website |
+| extension1 | string(20) | Y |      Agent ID(Can be used for login, each proxy account can only be used for a single operator) |
 
 
 
 ## Example
-- URL:
-    - http://127.0.0.1:8000/api/game/getKey
-- HTTP Method
-    -   POST
-- Form Data
-    > Content-Type: application/x-www-form-urlencoded
-    ``` 
-    cert:v8VMKKzlPpD0te4rX99Hgefs3PQrBFWJKiuUqg6Y
-    user:test1
-    extension1:adminweb
+
+- **URL**:
+    - `http://127.0.0.1:8000/api/game/getKey`
+
+- **HTTP Method**:
+    - `POST`
+
+- **Form Data**:
+    > Content-Type: `application/x-www-form-urlencoded`
+  
+    ```
+    cert: v8VMKKzlPpD0te4rX99Hgefs3PQrBFWJKiuUqg6Y
+    user: test1
+    extension1: adminweb
     ```
-	
 	
 ##     Return Result
 | Name     | Type     | Description   |    
 | -------- | -------- | -------- |   
-| status   | string     |  status code |     
-|key    |string |  access token (default valid time: 10 minutes)|  
-|returnurl  |string |  Return the URL for logging into the game. When logging into a specific game, include the 'kindid' for the specified game.|  
+| status   | string     | status code  |     
+|key    |string | unique identifier token generated upon each login |     
+|returnurl    |string |  Return the URL to log in to the game, with gid parameter required to specify the game for login|     
 
 
 ##    Successful Result
 
 ```
 {
-"status": 1,
-    "key": "o7301PFJ6FkBQSTJpilxNgOnSVZfMb2rtdZGZAUCPxIAIJdfPCJKVbWBnjNeN256QjE8K19lO7S2SYWMPVQWy8",
-    "returnurl": "https://127.0.0.1:8000/?key=o7301PFJ6FkBQSTJpilxNgOnSVZfMb2rtdZGZAUCPxIAIJdfPCJKVbWBnjNeN256QjE8K19lO7S2SYWMPVQWy8"
- }
+    "status": 1,
+    "key": "50iD5lzhlTAJqJepJcz4PWohVW0uXYwhTtMeixqdsgcT4ErSso9i17i8AZ247kEZVHO4oVDloDgCjeAulbX       T4I",
+    "returnurl": "http://127.0.0.1:8000/?key=50iD5lzhlTAJqJepJcz4PWohVW0uXYwhTtMeixqdsgcT4ErSso9i17i8AZ247kEZVHO4oVDloDgCjeAulbXT4I"
+}
+
 ```
 
 ##  Failed Result
@@ -61,55 +64,52 @@
 
 ##    Login
 
-###  Descripti on
->Invoke this method with your “Key” (returned by GetKey API) to launch game.
+###  Description
+>Returnurl(provided by the getkey API) to invoke this method to start the game (with gid specifying a specific game and lang specifying the game language), where a player can only enter one game at a time and cannot simultaneously enter multiple games.
 
->Game return description: After the game is closed, the return address (return_url= the parameter of the return address), if not filled in, the game has no return button.
+>Request method:(Host-> BesoftFront):GET;
 
+>Game return description: After the game is closed, the return address (return_url= the parameter of the return address), if not filled in, the game has no return button.
 
 ##    Method URL
 ```
-http://{BesoftFront}/?key=3F6AE577A2E2255EF4BACF02C9F8BB1154A9C6AD2F19701
-568BA675BDA3C46BCA64D243007F87C86119329271708&gid=be001&lang=en&return_url=https://returnyoururl.com
+http://{BesoftFront}/?key=3F6AE577A2E2255EF4BACF02C9F8BB1154A9C6AD2F19701568BA675BDA3C46BCA64D243007F87C86119329271708&gid=aa0001&lang=en&return_url=https://returnyoururl.com
 
 ```
 
 > 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       | 
 | -------- | -------- | -------- |    -------- |  
 | acc     | String(30)     |   Y |     User ID |
-| key     |string(86) |  Y |1.Key value returned by “GetKey”    ,   2.Please do URLEncoding on it while using the HTTP GET method) |
+| key     |string(86) |  Y |Key value returned by “GetKey”Please do URLEncoding on it   while using the HTTP GET method |
 | aid | string(20) | Y |      Agent Id  |
-| 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,Please encode the parameters in URLEncoding mode  |
-
+| 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,Please encode the parameters in URLEncoding mode |
 ##     Return Result
-
+{
+    "status": 1,
+    "key": "50iD5lzhlTAJqJepJcz4PWohVW0uXYwhTtMeixqdsgcT4ErSso9i17i8AZ247kEZVHO4oVDloDgCjeAulbXT4I",
+    "returnurl": "http://127.0.0.1:8000/?key=50iD5lzhlTAJqJepJcz4PWohVW0uXYwhTtMeixqdsgcT4ErSso9i17i8AZ247kEZVHO4oVDloDgCjeAulbXT4I"
+}
 ###  Successful Result
 
 >Redirect Browser to game hall page

+ 35 - 39
transfer/zh/keys.md

@@ -1,20 +1,15 @@
 # <font >获得密钥</font>
 ## 描述 
-
 >获得玩家启动游戏的新密钥,需要为首次登录提供货币。 若无此帐号,将自动新增帐号。
 
-> 请求方式( Host-> BeSoft):post 
-
-> 编码方式:application/x-www-form-urlencoded
-
-> Besoft响应的数据格式是: application/json
-
-##  网址
->   {besoftapi}/api/game/getKey
-
+>请求方式(Host -> BeSoft):post
 
+>编码方式:application/x-www-form-urlencoded
 
+>Besoft发出的请求数据格式是: application/json
 
+## 请求地址
+>{besoftapi}/api/game/getKey
 
 
 
@@ -23,39 +18,42 @@
 | -------- | -------- | -------- |    -------- |  
 | cert     | string     |   Y |     安全代码 |
 | user      |string (30) |  Y |      每个网站上唯一的用户 ID(仅允许小写a-z 和 0-9)|
-| extension1 | string(20) | Y |     代理帐号(每一个代理帐号只能用于单一运营商) |
-
+| extension1 | string(20) | Y |      代理帐号(可用于登录 ,每一个代理帐号只能用于单一运营商) |
 
 ## 示例
-- URL:
-    - http://127.0.0.1:8000/api/game/getKey
-- HTTP Method(请求方式)
-    -   POST
-- 表单数据
-    > Content-Type: application/x-www-form-urlencoded
-    ``` 
-    cert:v8VMKKzlPpD0te4rX99Hgefs3PQrBFWJKiuUqg6Y
-    user:test1
-    extension1:adminweb
+
+- **URL**:
+    - `http://127.0.0.1:8000/api/game/getKey`
+
+- **HTTP Method**(请求方式):
+    - `POST`
+
+- **表单数据**:
+    > Content-Type: `application/x-www-form-urlencoded`
+  
+    ```
+    cert: v8VMKKzlPpD0te4rX99Hgefs3PQrBFWJKiuUqg6Y
+    user: test1
+    extension1: adminweb
     ```
-	
-	
 
+
+	
 ## 返回结果
 | 名称     | 类型     | 必要    |     描述        | 
 | -------- | -------- | -------- |    -------- |  
 | status   | string     |   Y |     状态代码
-|key    |string  |  Y |     访问令牌(默认有效时间:10 分钟)|
+|key    |string (30) |  Y |     每次登录产生的token唯一标识符。|
 |returnurl| string | Y |     返回登陆游戏的url,必须添加gid指定登录游戏才能使用。 |
 
 ## 成功的结果
 
 ```
 {
-"status": 1,
-    "key": "o7301PFJ6FkBQSTJpilxNgOnSVZfMb2rtdZGZAUCPxIAIJdfPCJKVbWBnjNeN256QjE8K19lO7S2SYWMPVQWy8",
-    "returnurl": "https://127.0.0.1:8000/?key=o7301PFJ6FkBQSTJpilxNgOnSVZfMb2rtdZGZAUCPxIAIJdfPCJKVbWBnjNeN256QjE8K19lO7S2SYWMPVQWy8"
- }
+    "status": 1,
+    "key": "50iD5lzhlTAJqJepJcz4PWohVW0uXYwhTtMeixqdsgcT4ErSso9i17i8AZ247kEZVHO4oVDloDgCjeAulbXT4I",
+    "returnurl": "http://127.0.0.1:8000/?key=50iD5lzhlTAJqJepJcz4PWohVW0uXYwhTtMeixqdsgcT4ErSso9i17i8AZ247kEZVHO4oVDloDgCjeAulbXT4I"
+}
 
 ```
 
@@ -67,15 +65,15 @@
 ##  进入游戏
 
 ### 描述
->使用“key”(由 getkey api 返回)调用此方法以启动游戏。
+>使用“returnurl”(由 getkey api 返回)并拼接gid和lang参数,以启动游戏。玩家同时只能进入一个游戏不能同时进入多个游戏。
 
->游戏返回说明:游戏关闭后,返回的地址(return_url=返回地址的参数),如果不填写,游戏没有返回按钮。
+>请求方式(Host-> BesoftFront):GET;
 
 
-## 网址
+>游戏返回说明:游戏关闭后,返回的地址(return_url=返回地址的参数),如果不填写,游戏没有返回按钮。
+##  请求地址
 ```
-http://{BesoftFront}/?key=3F6AE577A2E2255EF4BACF02C9F8BB1154A9C6AD2F19701
-568BA675BDA3C46BCA64D243007F87C86119329271708&gid=be001&lang=en&return_url=https://returnyoururl.com
+http://{BesoftFront}/?key=3F6AE577A2E2255EF4BACF02C9F8BB1154A9C6AD2F19701568BA675BDA3C46BCA64D243007F87C86119329271708&gid=aa0001&lang=en&return_url=https://returnyoururl.com
 
 ```
 >新开界面:如果需要直接关闭当前窗口,请使用window.open方式打开,并且不需要传入return_url
@@ -92,7 +90,6 @@ http://{BesoftFront}/?key=3F6AE577A2E2255EF4BACF02C9F8BB1154A9C6AD2F19701
 
 ```
 
-
 ## 请求参数
 
 | 名称     | 类型     | 必要    |     描述        | 
@@ -100,15 +97,14 @@ http://{BesoftFront}/?key=3F6AE577A2E2255EF4BACF02C9F8BB1154A9C6AD2F19701
 | acc     | String(30)     |   Y |     用户ID |
 | key     |string(86) |  Y |从 getKey 接口拿到的 key。若使用 HTTP GET 方法,请以 URLEncoding 编码参数|
 | aid | string(20) | Y |      代理帐号  |
-| nick | string (50) | Y |     用户名,最多支持 16 个 Unicode 字节  |
-| gid | Integer | Y |      预设登入的游戏 ID ;  |
+| gid | string | Y |      预设登入的游戏 ID ;  |
 | lang | string | Y |      默认值为简中 (简中 英文) |
-| return_url | string | N |      return_url=游戏关闭的返回地址 请以URLEncoding方式编码参数|
+| return_url | string | N |      return_url=游戏关闭的返回地址 ,请以URLEncoding方式编码参数|
 ##  返回结果
 
 ### 成功的结果
 
->Redirect Browser to gamehall page; 导引至游戏页面
+>导引至游戏页面
 
 ### 失败的结果