Commit 92d605b33cc4412ce7de6fd7b54e89ce107b710b
1 parent
ae5854fb
Exists in
ver2.3.0
and in
1 other branch
提交
Showing
2 changed files
with
26 additions
and
0 deletions
Show diff stats
src/HttpServer/logic/constdef.go
... | ... | @@ -50,6 +50,8 @@ const ( |
50 | 50 | XIAOXINGXING_SERVERKEYTEST_1015 = "a81eb66afd923d24e65a4b542592bc41" |
51 | 51 | XIAOXINGXING_SERVERKEYTEST_1016 = "1909c8f83d1c162a7dba3ddb28b35b0f" |
52 | 52 | XIAOXINGXING_SERVERKEYTEST_1019 = "4523e5b2035a58ad60c80f0c0bc4231e" |
53 | + XIAOXINGXING_SERVERKEYTEST_1020 = "9232e69b0f7173338ecffcf142a10604" | |
54 | + XIAOXINGXING_SERVERKEYTEST_1021 = "bcfb8bd96e5ff84f7f603c3e7e974b90" | |
53 | 55 | //XIAOXINGXING_SDKURLOFFICAL = "https://testapi-gamesdk.d3games.com/" |
54 | 56 | XIAOXINGXING_SDKURLOFFICAL = "https://api.gamesdk.hmjoy.cn/" |
55 | 57 | ) | ... | ... |
src/HttpServer/logic/function.go
... | ... | @@ -1092,6 +1092,12 @@ func GetCoinFromSdk(uuid int, gameid string, channel string) (int, error) { |
1092 | 1092 | if gameid == "1019" { |
1093 | 1093 | SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1019 |
1094 | 1094 | } |
1095 | + if gameid == "1020" { | |
1096 | + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1020 | |
1097 | + } | |
1098 | + if gameid == "1021" { | |
1099 | + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1021 | |
1100 | + } | |
1095 | 1101 | var paramlist []string |
1096 | 1102 | var params GetCoinDesc |
1097 | 1103 | params.Sign_type = "md5" |
... | ... | @@ -1158,6 +1164,12 @@ func AddCoinToSdk(uuid int, goldnum int, gameid string, channel string, atype in |
1158 | 1164 | if gameid == "1019" { |
1159 | 1165 | SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1019 |
1160 | 1166 | } |
1167 | + if gameid == "1020" { | |
1168 | + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1020 | |
1169 | + } | |
1170 | + if gameid == "1021" { | |
1171 | + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1021 | |
1172 | + } | |
1161 | 1173 | var paramlist []string |
1162 | 1174 | sign_type := "sign_type=md5" |
1163 | 1175 | paramlist = append(paramlist, sign_type) |
... | ... | @@ -1232,6 +1244,12 @@ func GetCashFromSDK(uuid int, goldnum int, gameid, channel, openid, nickname, he |
1232 | 1244 | if gameid == "1019" { |
1233 | 1245 | SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1019 |
1234 | 1246 | } |
1247 | + if gameid == "1020" { | |
1248 | + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1020 | |
1249 | + } | |
1250 | + if gameid == "1021" { | |
1251 | + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1021 | |
1252 | + } | |
1235 | 1253 | if goldnum == 0 || uuid == 0 || gameid == "" || channel == "" || openid == "" || ver == "" { |
1236 | 1254 | logger.Error("GetCashFromSDK param empty") |
1237 | 1255 | return 0, errors.New("param empty") |
... | ... | @@ -1338,6 +1356,12 @@ func GetCashList(uuid int, gameid string, channel string, start int, number int) |
1338 | 1356 | if gameid == "1019" { |
1339 | 1357 | SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1019 |
1340 | 1358 | } |
1359 | + if gameid == "1020" { | |
1360 | + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1020 | |
1361 | + } | |
1362 | + if gameid == "1021" { | |
1363 | + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1021 | |
1364 | + } | |
1341 | 1365 | var paramlist []string |
1342 | 1366 | var params GetCashListDesc |
1343 | 1367 | params.Sign_type = "md5" | ... | ... |