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 | 49 | XIAOXINGXING_SERVERKEYTEST = "33e0c3238c108a36d87025544c6a2d2f" |
| 50 | 50 | XIAOXINGXING_SERVERKEYTEST_1015 = "a81eb66afd923d24e65a4b542592bc41" |
| 51 | 51 | XIAOXINGXING_SERVERKEYTEST_1016 = "1909c8f83d1c162a7dba3ddb28b35b0f" |
| 52 | + XIAOXINGXING_SERVERKEYTEST_1019 = "4523e5b2035a58ad60c80f0c0bc4231e" | |
| 52 | 53 | //XIAOXINGXING_SDKURLOFFICAL = "https://testapi-gamesdk.d3games.com/" |
| 53 | 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 | 1089 | if gameid == "1016" { |
| 1090 | 1090 | SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1016 |
| 1091 | 1091 | } |
| 1092 | + if gameid == "1019" { | |
| 1093 | + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1019 | |
| 1094 | + } | |
| 1092 | 1095 | var paramlist []string |
| 1093 | 1096 | var params GetCoinDesc |
| 1094 | 1097 | params.Sign_type = "md5" |
| ... | ... | @@ -1152,6 +1155,9 @@ func AddCoinToSdk(uuid int, goldnum int, gameid string, channel string, atype in |
| 1152 | 1155 | if gameid == "1016" { |
| 1153 | 1156 | SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1016 |
| 1154 | 1157 | } |
| 1158 | + if gameid == "1019" { | |
| 1159 | + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1019 | |
| 1160 | + } | |
| 1155 | 1161 | var paramlist []string |
| 1156 | 1162 | sign_type := "sign_type=md5" |
| 1157 | 1163 | paramlist = append(paramlist, sign_type) |
| ... | ... | @@ -1223,6 +1229,9 @@ func GetCashFromSDK(uuid int, goldnum int, gameid, channel, openid, nickname, he |
| 1223 | 1229 | if gameid == "1016" { |
| 1224 | 1230 | SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1016 |
| 1225 | 1231 | } |
| 1232 | + if gameid == "1019" { | |
| 1233 | + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1019 | |
| 1234 | + } | |
| 1226 | 1235 | if goldnum == 0 || uuid == 0 || gameid == "" || channel == "" || openid == "" || ver == "" { |
| 1227 | 1236 | logger.Error("GetCashFromSDK param empty") |
| 1228 | 1237 | return 0, errors.New("param empty") |
| ... | ... | @@ -1326,6 +1335,9 @@ func GetCashList(uuid int, gameid string, channel string, start int, number int) |
| 1326 | 1335 | if gameid == "1016" { |
| 1327 | 1336 | SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1016 |
| 1328 | 1337 | } |
| 1338 | + if gameid == "1019" { | |
| 1339 | + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1019 | |
| 1340 | + } | |
| 1329 | 1341 | var paramlist []string |
| 1330 | 1342 | var params GetCashListDesc |
| 1331 | 1343 | params.Sign_type = "md5" | ... | ... |