From 8de42aeebd70fc7d5f5053c92cea2e5f142fe464 Mon Sep 17 00:00:00 2001 From: 陆恒 Date: Thu, 16 Jul 2020 11:02:01 +0800 Subject: [PATCH] 提亀 --- src/HttpServer/logic/constdef.go | 1 + src/HttpServer/logic/function.go | 21 ++++++++++++--------- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/src/HttpServer/logic/constdef.go b/src/HttpServer/logic/constdef.go index 23691a0..b1b3e3d 100644 --- a/src/HttpServer/logic/constdef.go +++ b/src/HttpServer/logic/constdef.go @@ -54,6 +54,7 @@ const ( //XIAOXINGXING_SERVERKEYTEST = "e2cd22102143cdcd9c181f962d031685" XIAOXINGXING_SERVERKEYTEST = "33e0c3238c108a36d87025544c6a2d2f" XIAOXINGXING_SERVERKEYTEST_1015 = "a81eb66afd923d24e65a4b542592bc41" + XIAOXINGXING_SERVERKEYTEST_1017 = "ea3bf2acd640db3e75133c9f3cb43c0fs" //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 b1ddd94..64f5f81 100644 --- a/src/HttpServer/logic/function.go +++ b/src/HttpServer/logic/function.go @@ -473,9 +473,9 @@ func DoHttpPost(bys []byte, apistr string) (string, error) { func GetCoinFromSdk(uuid int, gameid string, channel string) (int, error) { SERVERKEY := conf.GetCoinConf().Key - /*if gameid == "1015" { - SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1015 - }*/ + if gameid == "1017" { + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1017 + } var paramlist []string var params GetCoinDesc @@ -809,9 +809,9 @@ func GetUserSelfData(uniqueid string) (string, error) { func GetCashList(uuid int, gameid string, channel string, start int, number int) (*[]WithDrawRecord, error) { SERVERKEY := conf.GetCoinConf().Key - /*if gameid == "1015" { - SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1015 - }*/ + if gameid == "1017" { + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1017 + } var paramlist []string var params GetCashListDesc @@ -879,6 +879,9 @@ func GetCashList(uuid int, gameid string, channel string, start int, number int) func GetCashFromSDK(uuid int, goldnum int, gameid, channel, openid, nickname, headurl, ver string, checkcoin int) (int, error) { SERVERKEY := conf.GetCoinConf().Key + if gameid == "1017" { + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1017 + } if goldnum == 0 || uuid == 0 || gameid == "" || channel == "" || openid == "" || ver == "" { logger.Error("GetCashFromSDK param empty") @@ -977,9 +980,9 @@ func GetCashFromSDK(uuid int, goldnum int, gameid, channel, openid, nickname, he func AddCoinToSdk(uuid int, goldnum int, gameid string, channel string, atype int) (int, error) { SERVERKEY := conf.GetCoinConf().Key - /*if gameid == "1015" { - SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1015 - }*/ + if gameid == "1017" { + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1017 + } var paramlist []string sign_type := "sign_type=md5" paramlist = append(paramlist, sign_type) -- libgit2 0.21.0