|
@@ -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
|
|
|
+}
|
|
|
+```
|