Ver Fonte

加回result1

qingjie há 7 meses atrás
pai
commit
a4b49d7997
4 ficheiros alterados com 165 adições e 0 exclusões
  1. 82 0
      seamless/en/Result1.md
  2. 1 0
      seamless/en/_sidebar.md
  3. 81 0
      seamless/zh/Result1.md
  4. 1 0
      seamless/zh/_sidebar.md

+ 82 - 0
seamless/en/Result1.md

@@ -0,0 +1,82 @@
+# <font >Game result</font>
+##  Description
+
+> This functionality pertains to the win/loss results returned by BeSoft games after placing a bet. This message may be sent multiple times. It is identified as a duplicate message based on the transId.
+
+> Request method:BeSoft -> Host):post 
+
+> Encoding method :application/x-www-form-urlencoded
+
+> The request data format issued by Besoft is: application/json
+
+##   Method URL 
+>	Provided by the game operator (Host).
+```
+	https://{host}/[notify_url]
+	OR:
+    http://{host}/[notify_url]
+```
+
+
+##    Request Parameters
+
+ | Name | Type | Required |Description|
+ |:--------:|:-----:|:--------:|:--------:|
+ | action | int32 | Y |3, Game result operation code|
+ | uid | string(32)  | Y |Player account|
+ | mode | int32 | Y |Game Mode|
+ | gid | string | Y |Game ID|
+ | bet | double | Y |Bet scores, accurate to two valid floating points after the decimal point, and participate in score settlement|
+ | spjpbet | double | Y |special jackpot Prize poolSingle cumulative prize pool bet value|
+ | win | double | Y |Win amount, displayed with precision up to two decimal places as a valid floating-point number,and participate in score settlement|
+ | ts | int64 | Y |Timestamp of the message request|
+ | roundId | string | Y |Unique ID for each round of the game|
+ | transId | string | Y |Unique transaction ID for each game transaction|
+
+
+## Request Example
+```json
+{
+    "action": 3,
+    "uid": "useraccount",
+    "mode": 0,
+    "bet": 1.00,
+    "spjpbet": 0.01,
+    "win": 10.00,
+    "ts":1732083839446,
+    "gid":"afa026",
+    "roundId":"1zr83u41gohrz",
+    "transId":"1zr8cu31gohrz"
+}
+```
+
+## Return Result
+
+ | Name | Type | Description |
+ |:--------:|:-----:|:--------:|
+ | action | int32 |3,Game result operation code |
+ | status | int32 | status code ,Type int32_t|
+ | balance | double | User's current latest score, accurate to two decimal places as a valid floating-point number |
+ | currency | string(3) |  USD currency code |
+
+ ##    Success Result
+
+```
+{
+    "action": 3,
+    "status": 1,
+    "balance": 3000.01,
+    "currency": “USD”
+}
+
+```
+
+>   <font color="red">Note: When status=1, the data is successful; otherwise, it is failed.</font>
+
+ ## Failed Result
+
+```
+{
+"status": 1003
+}
+```

+ 1 - 0
seamless/en/_sidebar.md

@@ -11,6 +11,7 @@
    * [Get gamelist](en/game_list)
    * [Get Balance](en/Check_Balance)
    * [Placing a bet](en/bet)
+   * [Game result](en/result1)
    * [Get round detail](en/round_detail)
    * [Get player total profit](en/total_profit_or_loss)
    * [Get free game count](en/free_count)

+ 81 - 0
seamless/zh/Result1.md

@@ -0,0 +1,81 @@
+# <font >游戏结果</font>
+## 描述
+
+> 此功能是下注后,BeSoft游戏返回的输赢结果。此消息可能会多次重复发送。根据transferId来判断是否为重复消息。
+
+> 请求方式(BeSoft -> Host):post 
+
+> 编码方式:application/x-www-form-urlencoded
+
+> Besoft发出的请求数据格式是: application/json
+
+## 请求地址
+>	由运营商(Host)提供。
+```
+https://{host}/[notify_url]
+或者
+http://{host}/[notify_url]
+```
+
+
+## 请求参数
+
+ | 名称 | 类型 | 必要 |描述|
+ |:--------:|:-----:|:--------:|:--------:|
+ | action | int32 | Y |结果操作码|
+ | uid | string(32)  | Y |玩家账号|
+ | mode | int32 | Y |游戏模式|
+ | gid | string | Y |游戏ID|
+ | bet | double | Y |下注分数,精确到小数点后两位有效浮点数,并参与分数结算|
+ | spjpbet | double | Y |单次累计奖池下注值|
+ | win | double | Y |赢回分数,精确到小数点后两位有效浮点数,并参与分数结算|
+ | ts | int64 | Y |消息请求时的时间戳|
+ | roundId | string | Y |每局游戏的回合唯一ID|
+ | transId | string | Y |每次游戏的交易ID,此id为交易的唯一ID|
+
+## 请求示例
+```json
+{
+    "action": 3,
+    "uid": "useraccount",
+    "mode": 0,
+    "bet": 1.00,
+    "spjpbet": 0.01,
+    "win": 10.00,
+    "ts":1732083839446,
+    "gid":"afa026",
+    "roundId":"1zr83u41gohrz",
+    "transId":"1zr8cu31gohrz"
+}
+```
+
+## 返回结果
+
+ | 名称 | 类型 | 必要 |
+ |:--------:|:-----:|:--------:|
+ | action | int32 | 3,游戏结果操作码 |
+ | status | int32 | 状态代码,类型是int32_t |
+ | balance | double | 用户当前最新分数,精确到小数点后面两位有效浮点数 |
+ | currency | string(3) |  货币编码 |
+
+ ## 成功的结果
+
+```
+{
+    "action": 3,
+    "status": 1,
+    "balance": 3000.01,
+    "currency": “USD”
+}
+
+```
+
+><font color="red">注释:当 status=1数据为成功,否则为失败</font>
+
+ ## 失败的结果
+
+```
+{
+"status": 1003
+}
+```

+ 1 - 0
seamless/zh/_sidebar.md

@@ -11,6 +11,7 @@
    * [获取游戏列表](zh/game_list)
    * [查询余额](zh/Check_Balance)
    * [押注](zh/bet)
+   * [游戏结果](zh/result1)
    * [后台游戏细单](zh/round_detail)
    * [玩家总输赢](zh/total_profit_or_loss)
    * [免费游戏剩余次数](zh/free_count)