# 後台游戏设定 ## 傳輸規範 - 使用TPC/IP作為傳輸層協議 - 使用HTTP作為應用層協議 - 傳遞參數格式皆為json(須使用Content-type規範header) - 此接口清單遵循restful設計理念 ## 接口說明 ### HTTP接口清單 - game-config/query-product-config-data(POST)-<a href="#game-config/query-product-config-data(POST)">游戏设定的查詢</a> - game-config/query-spProductInfo-settlementType-data-log(POST)-<a href="#game-config/query-spProductInfo-settlementType-data-log(POST)">預知權限變更紀錄</a> - game-config/update-product-config-data(POST)-<a href="#game-config/update-product-config-data(POST)">更新遊戲設定</a> ## 參數說明 ### <p id="game-config/query-product-config-data(POST)">game-config/query-product-config-data(POST)-模式變更紀錄</p> #### Reuqest - Method: **POST** - URL: ```/yuanbao-backstage-system/game-config/query-product-config-data``` - Headers: Content-Type:application/json - Body: ``` { "bcMemberId": 1, "spMemberId": 1, "spProductInfoId": 1973 } ``` #### Response - Body ``` { "data": { "spProductInfoPO": { "id": 1973, "spMemberId": 1, "productListId": 34, "status": "1", "gameCategory": "1,3", "ranking": 8, "flagshipProduct": 0, "settlementType": 4, (如果為1,可以看到預知權限,如果為4或5,將預知權限隱藏,代替原本的{\"daily\":\"0\",\"round\":\"100\"}通能,但原本的照樣修改.先不要拿掉) "createTime": "20180318190558", "updateTime": "20200421163735", "bcMemberId": null, "productName": "horserace", "productType": "lottery", "productRateInfoPOs": [] }, "spProductConfigPOs": [ { "id": 8363, "spProductInfoId": 1973, "type": "riskCompensation", "value": "{\"daily\":\"0\",\"round\":\"100\"}", (預知權限改由settlement判斷) "createTime": "20181107172000", "updateTime": "20191009183925", "currencyUpperLimit": 10000000 }, { "id": 8364, "spProductInfoId": 1973, "type": "payoutMode", "value": "{\"auth\":\"false\",\"mode\":\"preGameResult\"}", "createTime": "20181107172000", "updateTime": "20200421164051", "currencyUpperLimit": 10000000 }, { "id": 8365, "spProductInfoId": 1973, "type": "betLimitSingle", "value": "{\"size_single_and_double\":\"10000\",\"positioning_number\":\"30000\",\"champion_second\":\"2000\",\"champion_second_third\":\"2000\",\"not_first\":\"3000\",\"dragon_tiger\":\"10000\",\"champion\":\"3000\"}", "createTime": "20181107172000", "updateTime": "20191025180335", "currencyUpperLimit": 10000000 }, { "id": 8366, "spProductInfoId": 1973, "type": "betLimitTotal", "value": "{\"size_single_and_double\":\"30000\",\"positioning_number\":\"100000\",\"champion_second\":\"5000\",\"champion_second_third\":\"3000\",\"not_first\":\"10000\",\"dragon_tiger\":\"30000\",\"champion\":\"10000\"}", "createTime": "20181107172000", "updateTime": "20191025180335", "currencyUpperLimit": 10000000 }, { "id": 8367, "spProductInfoId": 1973, "type": "betRate", "value": "{\"betRate\":\"11.64\"}", "createTime": "20181107172000", "updateTime": "20191213165336", "currencyUpperLimit": 10000000 }, { "id": 11056, "spProductInfoId": 1973, "type": "betLimitLower", "value": "{\"betLimitLower\":\"11\"}", "createTime": "20191024174318", "updateTime": "20191029184040", "currencyUpperLimit": 10000000 } ] }, "retCode": "0" } ``` ### <p id="game-config/query-spProductInfo-settlementType-data-log(POST)">game-config/query-spProductInfo-settlementType-data-log(POST)-預知權限變更紀錄</p> #### Reuqest - Method: **POST** - URL: ```/yuanbao-backstage-system/game-config/query-spProductInfo-settlementType-data-log``` - Headers: Content-Type:application/json - Body: ``` { "spProductInfoId": 1973 } ``` #### Response - Body ``` { "data": { "operatorLogs": [ { "createTime": "20200421164224", "valueAfter": "4", (1:自開,4:輸贏對碰(彩票),5輸贏對碰(賭場) "valueBefore": "1", (1:自開,4:輸贏對碰(彩票),5輸贏對碰(賭場) "operator": "RT000" }, { "createTime": "20200421164142", "valueAfter": "1", "valueBefore": "4", "operator": "RT000" } ] }, "retCode": "0" } ``` ### <p id="game-config/update-product-config-data(POST)">game-config/update-product-config-data(POST)-更新遊戲設定</p> #### Reuqest - Method: **POST** - URL: ```/yuanbao-backstage-system/game-config/update-product-config-data``` - Headers: Content-Type:application/json - Body: ``` { "updateType" : 0, (0為預知權限的按鈕 ,1為開彩模式的按鈕) "spProductConfigPOs": [ { "id": 8364, "spProductInfoId": 1973, "type": "payoutMode", "value": "{\"auth\":\"false\",\"mode\":\"preGameResult\"}", "createTime": "20181107172000", "updateTime": "20200420173641", "currencyUpperLimit": 10000000 } ], "spProductInfoPO": { "id": 1973, "spMemberId": 1, "productListId": 34, "status": "1", "gameCategory": "1,3", "ranking": 8, "flagshipProduct": 0, "createTime": "20180318190558", "updateTime": "20200406123509", "bcMemberId": null, "productName": "horserace", "productType": "lottery", "settlementType": 0, (0為將預知權限關閉,1為將預知權限打開,代替原本的{\"daily\":\"0\",\"round\":\"100\"}) "spProductConfigPOs": null, "productRateInfoPOs": [] } } ``` #### Response - Body ``` { "retCode" : "0", } ``` ## <p id="parametersTable">參數說明</p> |參數名稱|參數格式|中文名稱| |:--|:--|:--| |account|String(32)|玩家帳號|