Commit e7d9c57eda248db878f90d5e248de96bcd21a144
1 parent
b33bba95
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
| ... | ... | @@ -48,6 +48,7 @@ const ( |
| 48 | 48 | //XIAOXINGXING_SERVERKEYTEST = "e2cd22102143cdcd9c181f962d031685" |
| 49 | 49 | XIAOXINGXING_SERVERKEYTEST = "33e0c3238c108a36d87025544c6a2d2f" |
| 50 | 50 | XIAOXINGXING_SERVERKEYTEST_1015 = "a81eb66afd923d24e65a4b542592bc41" |
| 51 | + XIAOXINGXING_SERVERKEYTEST_1016 = "1909c8f83d1c162a7dba3ddb28b35b0f" | |
| 51 | 52 | //XIAOXINGXING_SDKURLOFFICAL = "https://testapi-gamesdk.d3games.com/" |
| 52 | 53 | XIAOXINGXING_SDKURLOFFICAL = "https://api.gamesdk.hmjoy.cn/" |
| 53 | 54 | ) | ... | ... |
src/HttpServer/logic/function.go
| ... | ... | @@ -959,6 +959,9 @@ func GetCoinFromSdk(uuid int, gameid string, channel string) (int, error) { |
| 959 | 959 | SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1015 |
| 960 | 960 | } |
| 961 | 961 | |
| 962 | + if gameid == "1016" { | |
| 963 | + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1015 | |
| 964 | + } | |
| 962 | 965 | var paramlist []string |
| 963 | 966 | var params GetCoinDesc |
| 964 | 967 | params.Sign_type = "md5" |
| ... | ... | @@ -1019,6 +1022,9 @@ func AddCoinToSdk(uuid int, goldnum int, gameid string, channel string, atype in |
| 1019 | 1022 | if gameid == "1015" { |
| 1020 | 1023 | SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1015 |
| 1021 | 1024 | } |
| 1025 | + if gameid == "1016" { | |
| 1026 | + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1015 | |
| 1027 | + } | |
| 1022 | 1028 | var paramlist []string |
| 1023 | 1029 | sign_type := "sign_type=md5" |
| 1024 | 1030 | paramlist = append(paramlist, sign_type) |
| ... | ... | @@ -1087,6 +1093,9 @@ func GetCashFromSDK(uuid int, goldnum int, gameid, channel, openid, nickname, he |
| 1087 | 1093 | SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1015 |
| 1088 | 1094 | } |
| 1089 | 1095 | |
| 1096 | + if gameid == "1016" { | |
| 1097 | + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1015 | |
| 1098 | + } | |
| 1090 | 1099 | if goldnum == 0 || uuid == 0 || gameid == "" || channel == "" || openid == "" || ver == "" { |
| 1091 | 1100 | logger.Error("GetCashFromSDK param empty") |
| 1092 | 1101 | return 0, errors.New("param empty") |
| ... | ... | @@ -1187,6 +1196,9 @@ func GetCashList(uuid int, gameid string, channel string, start int, number int) |
| 1187 | 1196 | SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1015 |
| 1188 | 1197 | } |
| 1189 | 1198 | |
| 1199 | + if gameid == "1016" { | |
| 1200 | + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1015 | |
| 1201 | + } | |
| 1190 | 1202 | var paramlist []string |
| 1191 | 1203 | var params GetCashListDesc |
| 1192 | 1204 | params.Sign_type = "md5" | ... | ... |