Quellcode durchsuchen

踢玩家下线api

qingjie vor 3 Monaten
Ursprung
Commit
6a7f15dbc1
5 geänderte Dateien mit 135 neuen und 3 gelöschten Zeilen
  1. 1 0
      transfer/en/_sidebar.md
  2. 64 0
      transfer/en/kickout.md
  3. 3 2
      transfer/zh/_sidebar.md
  4. 4 1
      transfer/zh/errorcode.md
  5. 63 0
      transfer/zh/kickout.md

+ 1 - 0
transfer/en/_sidebar.md

@@ -19,6 +19,7 @@
    * [Get round detail](en/round_detail)
    * [Get free game count](en/free_count)
    * [Game Lobby Access](en/lobby)
+   * [Kick Out The Player](en/kickout)
 * [Appendix](en/appendice)
    * [List of Transaction Columns](en/Transaction_data)
    * [Currencies List](en/currency)

+ 64 - 0
transfer/en/kickout.md

@@ -0,0 +1,64 @@
+#   <font >Kick The Player Offline</font>
+## Description
+>   This function allows operators to kick players offline through the interface
+
+> 请求方式( Host-> BeSoft):post 
+
+> 编码方式:application/x-www-form-urlencoded
+
+> Besoft响应的数据格式是: application/json
+
+##  Method URL
+>   {besoftapi}/api/game/logout
+
+##     Request Parameters
+
+| Name    | Type     | Required    |     Description       |                                                                 
+| ---------- | ------ | ---- | ---------|
+| extension1 | String | Y    | security code|
+| cert       | String | Y    |  agent account|
+| user       | String | N    | The player's account was kicked off   |
+
+
+
+## Example
+- **URL**:
+    - http://127.0.0.1:8000/api/game/logout
+- **HTTP Method**:
+    -   POST
+- **Form Data**:
+    > Content-Type: application/x-www-form-urlencoded
+    ``` 
+    cert:v8VMKKzlPpD0te4rX99Hgefs3PQrBFWJKiuUqg6Y
+    extension1:adminweb
+    user:Guest492
+    ```
+
+
+	
+##     Return Result
+
+| Name     | Type     | Description   |    
+|--------|----------|--------|
+|status|            Int32           |status code  |     
+|erro|              Int32           |error code|
+
+##    Successful Result
+
+
+```json
+
+{
+	"status": 1
+}
+
+```
+
+
+##  Failed Result
+
+```
+{
+	"erro": 1042
+}
+```

+ 3 - 2
transfer/zh/_sidebar.md

@@ -7,17 +7,18 @@
    * [API安全性](zh/API_safety)
    * [性能和超时](zh/Performance_and_Timeout)
    * [调用方法](zh/InvokeAmethod)
-* [转账钱包函式](zh/Seamless_Wallet_Function)
+   * [转账钱包函式](zh/Seamless_Wallet_Function)
    * [获得密钥](zh/keys)
    * [获取游戏列表](zh/game_list)
    * [查询余额](zh/Check_Balance)
    * [存取款](zh/bet)
-   *  [获得交易记录 ](zh/usertradeinfo)
+   * [获得交易记录 ](zh/usertradeinfo)
    * [获得下注游戏记录](zh/game_bet_list)
    * [玩家总输赢](zh/total_profit_or_loss)
    * [游戏细单](zh/round_detail)
    * [免费游戏剩余次数](zh/free_count)
    * [游戏大厅接入](zh/lobby)
+   * [踢除玩家](zh/kickout)
 * [附录](zh/appendice)
    * [交易资料名称](zh/Transaction_data)
    * [货币类型列表](zh/currency)

+ 4 - 1
transfer/zh/errorcode.md

@@ -36,4 +36,7 @@
 | 1036    |  玩家正在游戏中            |
 | 1037    |  禁止交易            |
 | 1038    |  玩家交易分数不足            |
-| 1039    |  查询时间范围过大            |
+| 1039    |  查询时间范围过大            |
+| 1040    |  玩家其它地方登录            |
+| 1041    |  玩家Token过期            |
+| 1042    |  玩家不在线            |

+ 63 - 0
transfer/zh/kickout.md

@@ -0,0 +1,63 @@
+#   <font >把玩家踢下线</font>
+##  描述
+>   此功能允许运营商通过接口将玩家踢下线
+
+> 请求方式( Host-> BeSoft):post 
+
+> 编码方式:application/x-www-form-urlencoded
+
+> Besoft响应的数据格式是: application/json
+
+##  网址
+>   {besoftapi}/api/game/logout
+
+##  请求参数
+
+| 名称       | 类型   | 必要 | 描述                                                                     |
+| ---------- | ------ | ---- | ---------|
+| extension1 | String | Y    | 代理账号            |
+| cert       | String | Y    | 安全代码            |
+| user       | String | N    | 被踢除玩家账号   |
+
+
+## 示例
+- URL:
+    - http://127.0.0.1:8000/api/game/logout
+- HTTP Method
+    -   POST
+- 表单数据
+    > Content-Type: application/x-www-form-urlencoded
+    ``` 
+    cert:v8VMKKzlPpD0te4rX99Hgefs3PQrBFWJKiuUqg6Y
+    extension1:adminweb
+    user:Guest492
+    ```
+
+
+	
+##  返回结果
+
+|名称|	类型    |	描述    |
+|--------|----------|--------|
+|status|            Int32           |状态代码|
+|erro|              Int32           |错误码|
+
+##  成功的结果
+
+
+```json
+
+{
+	"status": 1
+}
+
+```
+
+
+##  失败的结果
+
+```
+{
+	"erro": 1042
+}
+```