Commit 63b37fac3372cdfdcd43a02f67493d2375c3b66f
1 parent
e4933b33
Exists in
master
and in
1 other branch
提交
Showing
2 changed files
with
13 additions
and
0 deletions
Show diff stats
src/HttpServer/logic/constdef.go
... | ... | @@ -52,6 +52,7 @@ const ( |
52 | 52 | //XIAOXINGXING_SERVERKEYTEST = "e2cd22102143cdcd9c181f962d031685" |
53 | 53 | XIAOXINGXING_SERVERKEYTEST = "0209d33879b3b512fc9b44625133330e" |
54 | 54 | XIAOXINGXING_SERVERKEYTEST_1015 = "a81eb66afd923d24e65a4b542592bc41" |
55 | + XIAOXINGXING_SERVERKEYTEST_1006 = "448388175646884a4fefe21d110e27bf" | |
55 | 56 | //XIAOXINGXING_SDKURLOFFICAL = "https://testapi-gamesdk.d3games.com/" |
56 | 57 | XIAOXINGXING_SDKURLOFFICAL = "https://api.gamesdk.hmjoy.cn/" |
57 | 58 | ) | ... | ... |
src/HttpServer/logic/function.go
... | ... | @@ -1089,6 +1089,9 @@ func GetCoinFromSdk(uuid int, gameid string, channel string) (int, error) { |
1089 | 1089 | if gameid == "1015" { |
1090 | 1090 | SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1015 |
1091 | 1091 | } |
1092 | + if gameid == "1006" { | |
1093 | + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1006 | |
1094 | + } | |
1092 | 1095 | |
1093 | 1096 | var paramlist []string |
1094 | 1097 | var params GetCoinDesc |
... | ... | @@ -1150,6 +1153,9 @@ func AddCoinToSdk(uuid int, goldnum int, gameid string, channel string, atype in |
1150 | 1153 | if gameid == "1015" { |
1151 | 1154 | SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1015 |
1152 | 1155 | } |
1156 | + if gameid == "1006" { | |
1157 | + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1006 | |
1158 | + } | |
1153 | 1159 | var paramlist []string |
1154 | 1160 | sign_type := "sign_type=md5" |
1155 | 1161 | paramlist = append(paramlist, sign_type) |
... | ... | @@ -1217,6 +1223,9 @@ func GetCashFromSDK(uuid int, goldnum int, gameid, channel, openid, nickname, he |
1217 | 1223 | if gameid == "1015" { |
1218 | 1224 | SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1015 |
1219 | 1225 | } |
1226 | + if gameid == "1006" { | |
1227 | + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1006 | |
1228 | + } | |
1220 | 1229 | |
1221 | 1230 | if goldnum == 0 || uuid == 0 || gameid == "" || channel == "" || openid == "" || ver == "" { |
1222 | 1231 | logger.Error("GetCashFromSDK param empty") |
... | ... | @@ -1317,6 +1326,9 @@ func GetCashList(uuid int, gameid string, channel string, start int, number int) |
1317 | 1326 | if gameid == "1015" { |
1318 | 1327 | SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1015 |
1319 | 1328 | } |
1329 | + if gameid == "1006" { | |
1330 | + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1006 | |
1331 | + } | |
1320 | 1332 | |
1321 | 1333 | var paramlist []string |
1322 | 1334 | var params GetCashListDesc | ... | ... |