Commit e7d9c57eda248db878f90d5e248de96bcd21a144

Authored by 陆恒
1 parent b33bba95
Exists in ver2.3.0 and in 1 other branch ver2.2.8

提交

src/HttpServer/logic/constdef.go
@@ -48,6 +48,7 @@ const ( @@ -48,6 +48,7 @@ const (
48 //XIAOXINGXING_SERVERKEYTEST = "e2cd22102143cdcd9c181f962d031685" 48 //XIAOXINGXING_SERVERKEYTEST = "e2cd22102143cdcd9c181f962d031685"
49 XIAOXINGXING_SERVERKEYTEST = "33e0c3238c108a36d87025544c6a2d2f" 49 XIAOXINGXING_SERVERKEYTEST = "33e0c3238c108a36d87025544c6a2d2f"
50 XIAOXINGXING_SERVERKEYTEST_1015 = "a81eb66afd923d24e65a4b542592bc41" 50 XIAOXINGXING_SERVERKEYTEST_1015 = "a81eb66afd923d24e65a4b542592bc41"
  51 + XIAOXINGXING_SERVERKEYTEST_1016 = "1909c8f83d1c162a7dba3ddb28b35b0f"
51 //XIAOXINGXING_SDKURLOFFICAL = "https://testapi-gamesdk.d3games.com/" 52 //XIAOXINGXING_SDKURLOFFICAL = "https://testapi-gamesdk.d3games.com/"
52 XIAOXINGXING_SDKURLOFFICAL = "https://api.gamesdk.hmjoy.cn/" 53 XIAOXINGXING_SDKURLOFFICAL = "https://api.gamesdk.hmjoy.cn/"
53 ) 54 )
src/HttpServer/logic/function.go
@@ -959,6 +959,9 @@ func GetCoinFromSdk(uuid int, gameid string, channel string) (int, error) { @@ -959,6 +959,9 @@ func GetCoinFromSdk(uuid int, gameid string, channel string) (int, error) {
959 SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1015 959 SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1015
960 } 960 }
961 961
  962 + if gameid == "1016" {
  963 + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1015
  964 + }
962 var paramlist []string 965 var paramlist []string
963 var params GetCoinDesc 966 var params GetCoinDesc
964 params.Sign_type = "md5" 967 params.Sign_type = "md5"
@@ -1019,6 +1022,9 @@ func AddCoinToSdk(uuid int, goldnum int, gameid string, channel string, atype in @@ -1019,6 +1022,9 @@ func AddCoinToSdk(uuid int, goldnum int, gameid string, channel string, atype in
1019 if gameid == "1015" { 1022 if gameid == "1015" {
1020 SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1015 1023 SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1015
1021 } 1024 }
  1025 + if gameid == "1016" {
  1026 + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1015
  1027 + }
1022 var paramlist []string 1028 var paramlist []string
1023 sign_type := "sign_type=md5" 1029 sign_type := "sign_type=md5"
1024 paramlist = append(paramlist, sign_type) 1030 paramlist = append(paramlist, sign_type)
@@ -1087,6 +1093,9 @@ func GetCashFromSDK(uuid int, goldnum int, gameid, channel, openid, nickname, he @@ -1087,6 +1093,9 @@ func GetCashFromSDK(uuid int, goldnum int, gameid, channel, openid, nickname, he
1087 SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1015 1093 SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1015
1088 } 1094 }
1089 1095
  1096 + if gameid == "1016" {
  1097 + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1015
  1098 + }
1090 if goldnum == 0 || uuid == 0 || gameid == "" || channel == "" || openid == "" || ver == "" { 1099 if goldnum == 0 || uuid == 0 || gameid == "" || channel == "" || openid == "" || ver == "" {
1091 logger.Error("GetCashFromSDK param empty") 1100 logger.Error("GetCashFromSDK param empty")
1092 return 0, errors.New("param empty") 1101 return 0, errors.New("param empty")
@@ -1187,6 +1196,9 @@ func GetCashList(uuid int, gameid string, channel string, start int, number int) @@ -1187,6 +1196,9 @@ func GetCashList(uuid int, gameid string, channel string, start int, number int)
1187 SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1015 1196 SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1015
1188 } 1197 }
1189 1198
  1199 + if gameid == "1016" {
  1200 + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1015
  1201 + }
1190 var paramlist []string 1202 var paramlist []string
1191 var params GetCashListDesc 1203 var params GetCashListDesc
1192 params.Sign_type = "md5" 1204 params.Sign_type = "md5"