diff --git a/src/HttpServer/logic/constdef.go b/src/HttpServer/logic/constdef.go index 35f3e52..54e0bb0 100644 --- a/src/HttpServer/logic/constdef.go +++ b/src/HttpServer/logic/constdef.go @@ -54,6 +54,7 @@ const ( XIAOXINGXING_SERVERKEYTEST = "0209d33879b3b512fc9b44625133330e" XIAOXINGXING_SERVERKEYTEST_1015 = "a81eb66afd923d24e65a4b542592bc41" XIAOXINGXING_SERVERKEYTEST_1006 = "448388175646884a4fefe21d110e27bf" + XIAOXINGXING_SERVERKEYTEST_1020 = "f313cbf8aee77150e7d77b5bee2ee733" //XIAOXINGXING_SDKURLOFFICAL = "https://testapi-gamesdk.d3games.com/" XIAOXINGXING_SDKURLOFFICAL = "https://api.gamesdk.hmjoy.cn/" ) diff --git a/src/HttpServer/logic/function.go b/src/HttpServer/logic/function.go index 8b9f544..bd7d9e0 100644 --- a/src/HttpServer/logic/function.go +++ b/src/HttpServer/logic/function.go @@ -1096,6 +1096,9 @@ func GetCoinFromSdk(uuid int, gameid string, channel string) (int, error) { if gameid == "1006" { SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1006 } + if gameid == "1020" { + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1020 + } var paramlist []string var params GetCoinDesc @@ -1160,6 +1163,9 @@ func AddCoinToSdk(uuid int, goldnum int, gameid string, channel string, atype in if gameid == "1006" { SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1006 } + if gameid == "1020" { + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1020 + } var paramlist []string sign_type := "sign_type=md5" paramlist = append(paramlist, sign_type) @@ -1230,6 +1236,9 @@ func GetCashFromSDK(uuid int, goldnum int, gameid, channel, openid, nickname, he if gameid == "1006" { SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1006 } + if gameid == "1020" { + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1020 + } if goldnum == 0 || uuid == 0 || gameid == "" || channel == "" || openid == "" || ver == "" { logger.Error("GetCashFromSDK param empty") @@ -1333,6 +1342,9 @@ func GetCashList(uuid int, gameid string, channel string, start int, number int) if gameid == "1006" { SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1006 } + if gameid == "1020" { + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1020 + } var paramlist []string var params GetCashListDesc -- libgit2 0.21.0