diff --git a/src/HttpServer/logic/constdef.go b/src/HttpServer/logic/constdef.go index e2d94d2..0046970 100644 --- a/src/HttpServer/logic/constdef.go +++ b/src/HttpServer/logic/constdef.go @@ -53,6 +53,7 @@ const ( XIAOXINGXING_SERVERKEYTEST_1019 = "f2a79af508f68c91515132b9231b97db" XIAOXINGXING_SERVERKEYTEST_1020 = "f313cbf8aee77150e7d77b5bee2ee733" XIAOXINGXING_SERVERKEYTEST_1021 = "845b6f853c764d8e3e04b69a5abcf477" + XIAOXINGXING_SERVERKEYTEST_1023 = "e2a49028f48f5651dfe8a32709ecfcfc" //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 49783bc..39c6d8b 100644 --- a/src/HttpServer/logic/function.go +++ b/src/HttpServer/logic/function.go @@ -1102,6 +1102,9 @@ func GetCoinFromSdk(uuid int, gameid string, channel string) (int, error) { if gameid == "1021" { SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1021 } + if gameid == "1023" { + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1023 + } var paramlist []string var params GetCoinDesc params.Sign_type = "md5" @@ -1174,6 +1177,9 @@ func AddCoinToSdk(uuid int, goldnum int, gameid string, channel string, atype in if gameid == "1021" { SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1021 } + if gameid == "1023" { + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1023 + } var paramlist []string sign_type := "sign_type=md5" paramlist = append(paramlist, sign_type) @@ -1254,6 +1260,9 @@ func GetCashFromSDK(uuid int, goldnum int, gameid, channel, openid, nickname, he if gameid == "1021" { SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1021 } + if gameid == "1023" { + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1023 + } if goldnum == 0 || uuid == 0 || gameid == "" || channel == "" || openid == "" || ver == "" { logger.Error("GetCashFromSDK param empty") return 0, errors.New("param empty") @@ -1366,6 +1375,9 @@ func GetCashList(uuid int, gameid string, channel string, start int, number int) if gameid == "1021" { SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1021 } + if gameid == "1023" { + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1023 + } var paramlist []string var params GetCashListDesc params.Sign_type = "md5" diff --git a/src/HttpServer/logic/wechat.go b/src/HttpServer/logic/wechat.go index 462da4a..6578925 100644 --- a/src/HttpServer/logic/wechat.go +++ b/src/HttpServer/logic/wechat.go @@ -95,4 +95,4 @@ func (w *WXUserDataCrypt) Decrypt(encryptedData, iv string) (*WxUserInfo, error) return nil, ErrAppIDNotMatch } return &userInfo, nil -} \ No newline at end of file +} -- libgit2 0.21.0