Commit 57a74a10bbb6802a4e703d151a92db5e5b97f09e

Authored by 陆恒
1 parent a4d4d998
Exists in ver2.3.6

提交

src/HttpServer/logic/constdef.go
... ... @@ -56,6 +56,7 @@ const (
56 56 XIAOXINGXING_SERVERKEYTEST_1015 = "a81eb66afd923d24e65a4b542592bc41"
57 57 XIAOXINGXING_SERVERKEYTEST_1006 = "448388175646884a4fefe21d110e27bf"
58 58 XIAOXINGXING_SERVERKEYTEST_1020 = "f313cbf8aee77150e7d77b5bee2ee733"
  59 + XIAOXINGXING_SERVERKEYTEST_1029 = "80fdff4d52242232356092dec7069e55"
59 60 //XIAOXINGXING_SDKURLOFFICAL = "https://testapi-gamesdk.d3games.com/"
60 61 XIAOXINGXING_SDKURLOFFICAL = "https://api.gamesdk.hmjoy.cn/"
61 62 )
... ...
src/HttpServer/logic/function.go
... ... @@ -1200,6 +1200,9 @@ func GetCoinFromSdk(uuid int, gameid string, channel string) (int, error) {
1200 1200 if gameid == "1020" {
1201 1201 SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1020
1202 1202 }
  1203 + if gameid == "1029" {
  1204 + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1029
  1205 + }
1203 1206  
1204 1207 var paramlist []string
1205 1208 var params GetCoinDesc
... ... @@ -1279,6 +1282,9 @@ func AddCoinToSdk(uuid int, goldnum int, gameid string, channel string, atype in
1279 1282 if gameid == "1020" {
1280 1283 SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1020
1281 1284 }
  1285 + if gameid == "1029" {
  1286 + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1029
  1287 + }
1282 1288 var paramlist []string
1283 1289 sign_type := "sign_type=md5"
1284 1290 paramlist = append(paramlist, sign_type)
... ... @@ -1350,6 +1356,9 @@ func GetCashWechatFromSDK(uuid int, goldnum int, gameid, channel, openid, nickna
1350 1356 if gameid == "1020" {
1351 1357 SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1020
1352 1358 }
  1359 + if gameid == "1029" {
  1360 + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1029
  1361 + }
1353 1362  
1354 1363 if goldnum == 0 || uuid == 0 || gameid == "" || channel == "" || ver == "" {
1355 1364 logger.Error("GetCashFromSDK param empty")
... ... @@ -1454,6 +1463,9 @@ func GetCashFromSDK(uuid int, goldnum int, gameid, channel, openid, nickname, he
1454 1463 if gameid == "1020" {
1455 1464 SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1020
1456 1465 }
  1466 + if gameid == "1029" {
  1467 + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1029
  1468 + }
1457 1469  
1458 1470 if goldnum == 0 || uuid == 0 || gameid == "" || channel == "" || openid == "" || ver == "" {
1459 1471 logger.Error("GetCashFromSDK param empty")
... ... @@ -1560,6 +1572,9 @@ func GetCashList(uuid int, gameid string, channel string, start int, number int)
1560 1572 if gameid == "1020" {
1561 1573 SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1020
1562 1574 }
  1575 + if gameid == "1029" {
  1576 + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1029
  1577 + }
1563 1578  
1564 1579 var paramlist []string
1565 1580 var params GetCashListDesc
... ...