Commit ae5854fb4997347edb79bde83b79344be7008e14
1 parent
c796da7f
Exists in
ver2.3.0
and in
1 other branch
提交
Showing
2 changed files
with
13 additions
and
0 deletions
Show diff stats
src/HttpServer/logic/constdef.go
@@ -49,6 +49,7 @@ const ( | @@ -49,6 +49,7 @@ const ( | ||
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_SERVERKEYTEST_1016 = "1909c8f83d1c162a7dba3ddb28b35b0f" |
52 | + XIAOXINGXING_SERVERKEYTEST_1019 = "4523e5b2035a58ad60c80f0c0bc4231e" | ||
52 | //XIAOXINGXING_SDKURLOFFICAL = "https://testapi-gamesdk.d3games.com/" | 53 | //XIAOXINGXING_SDKURLOFFICAL = "https://testapi-gamesdk.d3games.com/" |
53 | XIAOXINGXING_SDKURLOFFICAL = "https://api.gamesdk.hmjoy.cn/" | 54 | XIAOXINGXING_SDKURLOFFICAL = "https://api.gamesdk.hmjoy.cn/" |
54 | ) | 55 | ) |
src/HttpServer/logic/function.go
@@ -1089,6 +1089,9 @@ func GetCoinFromSdk(uuid int, gameid string, channel string) (int, error) { | @@ -1089,6 +1089,9 @@ func GetCoinFromSdk(uuid int, gameid string, channel string) (int, error) { | ||
1089 | if gameid == "1016" { | 1089 | if gameid == "1016" { |
1090 | SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1016 | 1090 | SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1016 |
1091 | } | 1091 | } |
1092 | + if gameid == "1019" { | ||
1093 | + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1019 | ||
1094 | + } | ||
1092 | var paramlist []string | 1095 | var paramlist []string |
1093 | var params GetCoinDesc | 1096 | var params GetCoinDesc |
1094 | params.Sign_type = "md5" | 1097 | params.Sign_type = "md5" |
@@ -1152,6 +1155,9 @@ func AddCoinToSdk(uuid int, goldnum int, gameid string, channel string, atype in | @@ -1152,6 +1155,9 @@ func AddCoinToSdk(uuid int, goldnum int, gameid string, channel string, atype in | ||
1152 | if gameid == "1016" { | 1155 | if gameid == "1016" { |
1153 | SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1016 | 1156 | SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1016 |
1154 | } | 1157 | } |
1158 | + if gameid == "1019" { | ||
1159 | + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1019 | ||
1160 | + } | ||
1155 | var paramlist []string | 1161 | var paramlist []string |
1156 | sign_type := "sign_type=md5" | 1162 | sign_type := "sign_type=md5" |
1157 | paramlist = append(paramlist, sign_type) | 1163 | paramlist = append(paramlist, sign_type) |
@@ -1223,6 +1229,9 @@ func GetCashFromSDK(uuid int, goldnum int, gameid, channel, openid, nickname, he | @@ -1223,6 +1229,9 @@ func GetCashFromSDK(uuid int, goldnum int, gameid, channel, openid, nickname, he | ||
1223 | if gameid == "1016" { | 1229 | if gameid == "1016" { |
1224 | SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1016 | 1230 | SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1016 |
1225 | } | 1231 | } |
1232 | + if gameid == "1019" { | ||
1233 | + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1019 | ||
1234 | + } | ||
1226 | if goldnum == 0 || uuid == 0 || gameid == "" || channel == "" || openid == "" || ver == "" { | 1235 | if goldnum == 0 || uuid == 0 || gameid == "" || channel == "" || openid == "" || ver == "" { |
1227 | logger.Error("GetCashFromSDK param empty") | 1236 | logger.Error("GetCashFromSDK param empty") |
1228 | return 0, errors.New("param empty") | 1237 | return 0, errors.New("param empty") |
@@ -1326,6 +1335,9 @@ func GetCashList(uuid int, gameid string, channel string, start int, number int) | @@ -1326,6 +1335,9 @@ func GetCashList(uuid int, gameid string, channel string, start int, number int) | ||
1326 | if gameid == "1016" { | 1335 | if gameid == "1016" { |
1327 | SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1016 | 1336 | SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1016 |
1328 | } | 1337 | } |
1338 | + if gameid == "1019" { | ||
1339 | + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1019 | ||
1340 | + } | ||
1329 | var paramlist []string | 1341 | var paramlist []string |
1330 | var params GetCashListDesc | 1342 | var params GetCashListDesc |
1331 | params.Sign_type = "md5" | 1343 | params.Sign_type = "md5" |