Commit d1820636e718c3d3f2bb0b006cf8e88678b50da1

Authored by 陆恒
1 parent d42f17db
Exists in master

提交

src/HttpServer/logic/constdef.go
@@ -56,6 +56,7 @@ const ( @@ -56,6 +56,7 @@ const (
56 XIAOXINGXING_SERVERKEYTEST_1020 = "f313cbf8aee77150e7d77b5bee2ee733" 56 XIAOXINGXING_SERVERKEYTEST_1020 = "f313cbf8aee77150e7d77b5bee2ee733"
57 XIAOXINGXING_SERVERKEYTEST_1021 = "845b6f853c764d8e3e04b69a5abcf477" 57 XIAOXINGXING_SERVERKEYTEST_1021 = "845b6f853c764d8e3e04b69a5abcf477"
58 XIAOXINGXING_SERVERKEYTEST_1023 = "e2a49028f48f5651dfe8a32709ecfcfc" 58 XIAOXINGXING_SERVERKEYTEST_1023 = "e2a49028f48f5651dfe8a32709ecfcfc"
  59 + XIAOXINGXING_SERVERKEYTEST_1032 = "15d4a5516e458e6a4c4751fa659208d4"
59 //XIAOXINGXING_SDKURLOFFICAL = "https://testapi-gamesdk.d3games.com/" 60 //XIAOXINGXING_SDKURLOFFICAL = "https://testapi-gamesdk.d3games.com/"
60 XIAOXINGXING_SDKURLOFFICAL = "https://api.gamesdk.hmjoy.cn/" 61 XIAOXINGXING_SDKURLOFFICAL = "https://api.gamesdk.hmjoy.cn/"
61 ) 62 )
src/HttpServer/logic/function.go
@@ -1214,6 +1214,11 @@ func GetCoinFromSdk(uuid int, gameid string, channel string) (int, error) { @@ -1214,6 +1214,11 @@ func GetCoinFromSdk(uuid int, gameid string, channel string) (int, error) {
1214 if gameid == "1023" { 1214 if gameid == "1023" {
1215 SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1023 1215 SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1023
1216 } 1216 }
  1217 +
  1218 + if gameid == "1032" {
  1219 + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1032
  1220 + }
  1221 +
1217 var paramlist []string 1222 var paramlist []string
1218 var params GetCoinDesc 1223 var params GetCoinDesc
1219 params.Sign_type = "md5" 1224 params.Sign_type = "md5"
@@ -1301,6 +1306,9 @@ func AddCoinToSdk(uuid int, goldnum int, gameid string, channel string, atype in @@ -1301,6 +1306,9 @@ func AddCoinToSdk(uuid int, goldnum int, gameid string, channel string, atype in
1301 if gameid == "1023" { 1306 if gameid == "1023" {
1302 SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1023 1307 SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1023
1303 } 1308 }
  1309 + if gameid == "1032" {
  1310 + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1032
  1311 + }
1304 var paramlist []string 1312 var paramlist []string
1305 sign_type := "sign_type=md5" 1313 sign_type := "sign_type=md5"
1306 paramlist = append(paramlist, sign_type) 1314 paramlist = append(paramlist, sign_type)
@@ -1384,6 +1392,11 @@ func GetCashFromSDK(uuid int, goldnum int, gameid, channel, openid, nickname, he @@ -1384,6 +1392,11 @@ func GetCashFromSDK(uuid int, goldnum int, gameid, channel, openid, nickname, he
1384 if gameid == "1023" { 1392 if gameid == "1023" {
1385 SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1023 1393 SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1023
1386 } 1394 }
  1395 +
  1396 + if gameid == "1032" {
  1397 + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1032
  1398 + }
  1399 +
1387 if goldnum == 0 || uuid == 0 || gameid == "" || channel == "" || openid == "" || ver == "" { 1400 if goldnum == 0 || uuid == 0 || gameid == "" || channel == "" || openid == "" || ver == "" {
1388 logger.Error("GetCashFromSDK param empty") 1401 logger.Error("GetCashFromSDK param empty")
1389 return 0, errors.New("param empty") 1402 return 0, errors.New("param empty")
@@ -1499,6 +1512,11 @@ func GetCashList(uuid int, gameid string, channel string, start int, number int) @@ -1499,6 +1512,11 @@ func GetCashList(uuid int, gameid string, channel string, start int, number int)
1499 if gameid == "1023" { 1512 if gameid == "1023" {
1500 SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1023 1513 SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1023
1501 } 1514 }
  1515 +
  1516 + if gameid == "1032" {
  1517 + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1032
  1518 + }
  1519 +
1502 var paramlist []string 1520 var paramlist []string
1503 var params GetCashListDesc 1521 var params GetCashListDesc
1504 params.Sign_type = "md5" 1522 params.Sign_type = "md5"