diff --git a/src/HttpServer/logic/constdef.go b/src/HttpServer/logic/constdef.go index be8fcc7..9a2eb0b 100644 --- a/src/HttpServer/logic/constdef.go +++ b/src/HttpServer/logic/constdef.go @@ -56,6 +56,7 @@ const ( XIAOXINGXING_SERVERKEYTEST_1015 = "a81eb66afd923d24e65a4b542592bc41" XIAOXINGXING_SERVERKEYTEST_1006 = "448388175646884a4fefe21d110e27bf" XIAOXINGXING_SERVERKEYTEST_1020 = "f313cbf8aee77150e7d77b5bee2ee733" + XIAOXINGXING_SERVERKEYTEST_1029 = "80fdff4d52242232356092dec7069e55" //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 6909f76..a4b1c48 100644 --- a/src/HttpServer/logic/function.go +++ b/src/HttpServer/logic/function.go @@ -1200,6 +1200,9 @@ func GetCoinFromSdk(uuid int, gameid string, channel string) (int, error) { if gameid == "1020" { SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1020 } + if gameid == "1029" { + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1029 + } var paramlist []string var params GetCoinDesc @@ -1279,6 +1282,9 @@ func AddCoinToSdk(uuid int, goldnum int, gameid string, channel string, atype in if gameid == "1020" { SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1020 } + if gameid == "1029" { + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1029 + } var paramlist []string sign_type := "sign_type=md5" paramlist = append(paramlist, sign_type) @@ -1350,6 +1356,9 @@ func GetCashWechatFromSDK(uuid int, goldnum int, gameid, channel, openid, nickna if gameid == "1020" { SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1020 } + if gameid == "1029" { + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1029 + } if goldnum == 0 || uuid == 0 || gameid == "" || channel == "" || ver == "" { logger.Error("GetCashFromSDK param empty") @@ -1454,6 +1463,9 @@ func GetCashFromSDK(uuid int, goldnum int, gameid, channel, openid, nickname, he if gameid == "1020" { SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1020 } + if gameid == "1029" { + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1029 + } if goldnum == 0 || uuid == 0 || gameid == "" || channel == "" || openid == "" || ver == "" { logger.Error("GetCashFromSDK param empty") @@ -1560,6 +1572,9 @@ func GetCashList(uuid int, gameid string, channel string, start int, number int) if gameid == "1020" { SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1020 } + if gameid == "1029" { + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1029 + } var paramlist []string var params GetCashListDesc -- libgit2 0.21.0