diff --git a/src/HttpServer/logic/constdef.go b/src/HttpServer/logic/constdef.go index 873a066..43d002d 100644 --- a/src/HttpServer/logic/constdef.go +++ b/src/HttpServer/logic/constdef.go @@ -56,6 +56,7 @@ const ( XIAOXINGXING_SERVERKEYTEST_1020 = "f313cbf8aee77150e7d77b5bee2ee733" XIAOXINGXING_SERVERKEYTEST_1021 = "845b6f853c764d8e3e04b69a5abcf477" XIAOXINGXING_SERVERKEYTEST_1023 = "e2a49028f48f5651dfe8a32709ecfcfc" + XIAOXINGXING_SERVERKEYTEST_1032 = "15d4a5516e458e6a4c4751fa659208d4" //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 2f713fb..a39d652 100644 --- a/src/HttpServer/logic/function.go +++ b/src/HttpServer/logic/function.go @@ -1214,6 +1214,11 @@ func GetCoinFromSdk(uuid int, gameid string, channel string) (int, error) { if gameid == "1023" { SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1023 } + + if gameid == "1032" { + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1032 + } + var paramlist []string var params GetCoinDesc params.Sign_type = "md5" @@ -1301,6 +1306,9 @@ func AddCoinToSdk(uuid int, goldnum int, gameid string, channel string, atype in if gameid == "1023" { SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1023 } + if gameid == "1032" { + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1032 + } var paramlist []string sign_type := "sign_type=md5" paramlist = append(paramlist, sign_type) @@ -1384,6 +1392,11 @@ func GetCashFromSDK(uuid int, goldnum int, gameid, channel, openid, nickname, he if gameid == "1023" { SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1023 } + + if gameid == "1032" { + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1032 + } + if goldnum == 0 || uuid == 0 || gameid == "" || channel == "" || openid == "" || ver == "" { logger.Error("GetCashFromSDK param empty") return 0, errors.New("param empty") @@ -1499,6 +1512,11 @@ func GetCashList(uuid int, gameid string, channel string, start int, number int) if gameid == "1023" { SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1023 } + + if gameid == "1032" { + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1032 + } + var paramlist []string var params GetCashListDesc params.Sign_type = "md5" -- libgit2 0.21.0