Commit b5bfe9235902ddd3ed8d11d1dd525c754ba8ff6f
1 parent
60a5ffd2
Exists in
ver2.3.0
提交
Showing
2 changed files
with
16 additions
and
0 deletions
Show diff stats
src/HttpServer/logic/constdef.go
| ... | ... | @@ -55,6 +55,7 @@ const ( |
| 55 | 55 | XIAOXINGXING_SERVERKEYTEST_1020 = "f313cbf8aee77150e7d77b5bee2ee733" |
| 56 | 56 | XIAOXINGXING_SERVERKEYTEST_1021 = "845b6f853c764d8e3e04b69a5abcf477" |
| 57 | 57 | XIAOXINGXING_SERVERKEYTEST_1023 = "e2a49028f48f5651dfe8a32709ecfcfc" |
| 58 | + XIAOXINGXING_SERVERKEYTEST_1030 = "f8fbe13d4932e66174714e912601c360" | |
| 58 | 59 | //XIAOXINGXING_SDKURLOFFICAL = "https://testapi-gamesdk.d3games.com/" |
| 59 | 60 | XIAOXINGXING_SDKURLOFFICAL = "https://api.gamesdk.hmjoy.cn/" |
| 60 | 61 | ) | ... | ... |
src/HttpServer/logic/function.go
| ... | ... | @@ -1189,6 +1189,9 @@ func GetCoinFromSdk(uuid int, gameid string, channel string) (int, error) { |
| 1189 | 1189 | if gameid == "1023" { |
| 1190 | 1190 | SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1023 |
| 1191 | 1191 | } |
| 1192 | + if gameid == "1030" { | |
| 1193 | + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1030 | |
| 1194 | + } | |
| 1192 | 1195 | var paramlist []string |
| 1193 | 1196 | var params GetCoinDesc |
| 1194 | 1197 | params.Sign_type = "md5" |
| ... | ... | @@ -1276,6 +1279,9 @@ func AddCoinToSdk(uuid int, goldnum int, gameid string, channel string, atype in |
| 1276 | 1279 | if gameid == "1023" { |
| 1277 | 1280 | SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1023 |
| 1278 | 1281 | } |
| 1282 | + if gameid == "1030" { | |
| 1283 | + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1030 | |
| 1284 | + } | |
| 1279 | 1285 | var paramlist []string |
| 1280 | 1286 | sign_type := "sign_type=md5" |
| 1281 | 1287 | paramlist = append(paramlist, sign_type) |
| ... | ... | @@ -1359,6 +1365,9 @@ func GetCashWechatFromSDK(uuid int, goldnum int, gameid, channel, openid, nickna |
| 1359 | 1365 | if gameid == "1023" { |
| 1360 | 1366 | SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1023 |
| 1361 | 1367 | } |
| 1368 | + if gameid == "1030" { | |
| 1369 | + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1030 | |
| 1370 | + } | |
| 1362 | 1371 | if goldnum == 0 || uuid == 0 || gameid == "" || channel == "" || ver == "" { |
| 1363 | 1372 | logger.Error("GetCashFromSDK param empty") |
| 1364 | 1373 | return "error", errors.New("param empty") |
| ... | ... | @@ -1473,6 +1482,9 @@ func GetCashFromSDK(uuid int, goldnum int, gameid, channel, openid, nickname, he |
| 1473 | 1482 | if gameid == "1023" { |
| 1474 | 1483 | SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1023 |
| 1475 | 1484 | } |
| 1485 | + if gameid == "1030" { | |
| 1486 | + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1030 | |
| 1487 | + } | |
| 1476 | 1488 | if goldnum == 0 || uuid == 0 || gameid == "" || channel == "" || openid == "" || ver == "" { |
| 1477 | 1489 | logger.Error("GetCashFromSDK param empty") |
| 1478 | 1490 | return 0, errors.New("param empty") |
| ... | ... | @@ -1588,6 +1600,9 @@ func GetCashList(uuid int, gameid string, channel string, start int, number int) |
| 1588 | 1600 | if gameid == "1023" { |
| 1589 | 1601 | SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1023 |
| 1590 | 1602 | } |
| 1603 | + if gameid == "1030" { | |
| 1604 | + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1030 | |
| 1605 | + } | |
| 1591 | 1606 | var paramlist []string |
| 1592 | 1607 | var params GetCashListDesc |
| 1593 | 1608 | params.Sign_type = "md5" | ... | ... |