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