diff --git a/src/HttpServer/logic/constdef.go b/src/HttpServer/logic/constdef.go index 557e4e1..5abab8c 100644 --- a/src/HttpServer/logic/constdef.go +++ b/src/HttpServer/logic/constdef.go @@ -52,6 +52,7 @@ const ( //XIAOXINGXING_SERVERKEYTEST = "e2cd22102143cdcd9c181f962d031685" XIAOXINGXING_SERVERKEYTEST = "0209d33879b3b512fc9b44625133330e" XIAOXINGXING_SERVERKEYTEST_1015 = "a81eb66afd923d24e65a4b542592bc41" + XIAOXINGXING_SERVERKEYTEST_1006 = "448388175646884a4fefe21d110e27bf" //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 a8483ed..c09c729 100644 --- a/src/HttpServer/logic/function.go +++ b/src/HttpServer/logic/function.go @@ -1089,6 +1089,9 @@ func GetCoinFromSdk(uuid int, gameid string, channel string) (int, error) { if gameid == "1015" { SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1015 } + if gameid == "1006" { + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1006 + } var paramlist []string var params GetCoinDesc @@ -1150,6 +1153,9 @@ func AddCoinToSdk(uuid int, goldnum int, gameid string, channel string, atype in if gameid == "1015" { SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1015 } + if gameid == "1006" { + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1006 + } var paramlist []string sign_type := "sign_type=md5" paramlist = append(paramlist, sign_type) @@ -1217,6 +1223,9 @@ func GetCashFromSDK(uuid int, goldnum int, gameid, channel, openid, nickname, he if gameid == "1015" { SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1015 } + if gameid == "1006" { + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1006 + } if goldnum == 0 || uuid == 0 || gameid == "" || channel == "" || openid == "" || ver == "" { logger.Error("GetCashFromSDK param empty") @@ -1317,6 +1326,9 @@ func GetCashList(uuid int, gameid string, channel string, start int, number int) if gameid == "1015" { SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1015 } + if gameid == "1006" { + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1006 + } var paramlist []string var params GetCashListDesc -- libgit2 0.21.0