Commit 8afb0fd05df0599b9d5137a11c57bc1100b06c44

Authored by 陆恒
1 parent 0d8f13fb
Exists in master and in 1 other branch ver2.3.6

提交

src/HttpServer/logic/constdef.go
... ... @@ -54,6 +54,7 @@ const (
54 54 XIAOXINGXING_SERVERKEYTEST = "0209d33879b3b512fc9b44625133330e"
55 55 XIAOXINGXING_SERVERKEYTEST_1015 = "a81eb66afd923d24e65a4b542592bc41"
56 56 XIAOXINGXING_SERVERKEYTEST_1006 = "448388175646884a4fefe21d110e27bf"
  57 + XIAOXINGXING_SERVERKEYTEST_1020 = "f313cbf8aee77150e7d77b5bee2ee733"
57 58 //XIAOXINGXING_SDKURLOFFICAL = "https://testapi-gamesdk.d3games.com/"
58 59 XIAOXINGXING_SDKURLOFFICAL = "https://api.gamesdk.hmjoy.cn/"
59 60 )
... ...
src/HttpServer/logic/function.go
... ... @@ -1096,6 +1096,9 @@ func GetCoinFromSdk(uuid int, gameid string, channel string) (int, error) {
1096 1096 if gameid == "1006" {
1097 1097 SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1006
1098 1098 }
  1099 + if gameid == "1020" {
  1100 + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1020
  1101 + }
1099 1102  
1100 1103 var paramlist []string
1101 1104 var params GetCoinDesc
... ... @@ -1160,6 +1163,9 @@ func AddCoinToSdk(uuid int, goldnum int, gameid string, channel string, atype in
1160 1163 if gameid == "1006" {
1161 1164 SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1006
1162 1165 }
  1166 + if gameid == "1020" {
  1167 + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1020
  1168 + }
1163 1169 var paramlist []string
1164 1170 sign_type := "sign_type=md5"
1165 1171 paramlist = append(paramlist, sign_type)
... ... @@ -1230,6 +1236,9 @@ func GetCashFromSDK(uuid int, goldnum int, gameid, channel, openid, nickname, he
1230 1236 if gameid == "1006" {
1231 1237 SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1006
1232 1238 }
  1239 + if gameid == "1020" {
  1240 + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1020
  1241 + }
1233 1242  
1234 1243 if goldnum == 0 || uuid == 0 || gameid == "" || channel == "" || openid == "" || ver == "" {
1235 1244 logger.Error("GetCashFromSDK param empty")
... ... @@ -1333,6 +1342,9 @@ func GetCashList(uuid int, gameid string, channel string, start int, number int)
1333 1342 if gameid == "1006" {
1334 1343 SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1006
1335 1344 }
  1345 + if gameid == "1020" {
  1346 + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1020
  1347 + }
1336 1348  
1337 1349 var paramlist []string
1338 1350 var params GetCashListDesc
... ...