Commit d1d5c633c029a682041e70ce5b3e6da300505636
1 parent
c60955f2
Exists in
ver2.3.0
and in
1 other branch
提交
Showing
3 changed files
with
14 additions
and
1 deletions
Show diff stats
src/HttpServer/logic/constdef.go
@@ -53,6 +53,7 @@ const ( | @@ -53,6 +53,7 @@ const ( | ||
53 | XIAOXINGXING_SERVERKEYTEST_1019 = "f2a79af508f68c91515132b9231b97db" | 53 | XIAOXINGXING_SERVERKEYTEST_1019 = "f2a79af508f68c91515132b9231b97db" |
54 | XIAOXINGXING_SERVERKEYTEST_1020 = "f313cbf8aee77150e7d77b5bee2ee733" | 54 | XIAOXINGXING_SERVERKEYTEST_1020 = "f313cbf8aee77150e7d77b5bee2ee733" |
55 | XIAOXINGXING_SERVERKEYTEST_1021 = "845b6f853c764d8e3e04b69a5abcf477" | 55 | XIAOXINGXING_SERVERKEYTEST_1021 = "845b6f853c764d8e3e04b69a5abcf477" |
56 | + XIAOXINGXING_SERVERKEYTEST_1023 = "e2a49028f48f5651dfe8a32709ecfcfc" | ||
56 | //XIAOXINGXING_SDKURLOFFICAL = "https://testapi-gamesdk.d3games.com/" | 57 | //XIAOXINGXING_SDKURLOFFICAL = "https://testapi-gamesdk.d3games.com/" |
57 | XIAOXINGXING_SDKURLOFFICAL = "https://api.gamesdk.hmjoy.cn/" | 58 | XIAOXINGXING_SDKURLOFFICAL = "https://api.gamesdk.hmjoy.cn/" |
58 | ) | 59 | ) |
src/HttpServer/logic/function.go
@@ -1102,6 +1102,9 @@ func GetCoinFromSdk(uuid int, gameid string, channel string) (int, error) { | @@ -1102,6 +1102,9 @@ func GetCoinFromSdk(uuid int, gameid string, channel string) (int, error) { | ||
1102 | if gameid == "1021" { | 1102 | if gameid == "1021" { |
1103 | SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1021 | 1103 | SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1021 |
1104 | } | 1104 | } |
1105 | + if gameid == "1023" { | ||
1106 | + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1023 | ||
1107 | + } | ||
1105 | var paramlist []string | 1108 | var paramlist []string |
1106 | var params GetCoinDesc | 1109 | var params GetCoinDesc |
1107 | params.Sign_type = "md5" | 1110 | params.Sign_type = "md5" |
@@ -1174,6 +1177,9 @@ func AddCoinToSdk(uuid int, goldnum int, gameid string, channel string, atype in | @@ -1174,6 +1177,9 @@ func AddCoinToSdk(uuid int, goldnum int, gameid string, channel string, atype in | ||
1174 | if gameid == "1021" { | 1177 | if gameid == "1021" { |
1175 | SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1021 | 1178 | SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1021 |
1176 | } | 1179 | } |
1180 | + if gameid == "1023" { | ||
1181 | + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1023 | ||
1182 | + } | ||
1177 | var paramlist []string | 1183 | var paramlist []string |
1178 | sign_type := "sign_type=md5" | 1184 | sign_type := "sign_type=md5" |
1179 | paramlist = append(paramlist, sign_type) | 1185 | paramlist = append(paramlist, sign_type) |
@@ -1254,6 +1260,9 @@ func GetCashFromSDK(uuid int, goldnum int, gameid, channel, openid, nickname, he | @@ -1254,6 +1260,9 @@ func GetCashFromSDK(uuid int, goldnum int, gameid, channel, openid, nickname, he | ||
1254 | if gameid == "1021" { | 1260 | if gameid == "1021" { |
1255 | SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1021 | 1261 | SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1021 |
1256 | } | 1262 | } |
1263 | + if gameid == "1023" { | ||
1264 | + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1023 | ||
1265 | + } | ||
1257 | if goldnum == 0 || uuid == 0 || gameid == "" || channel == "" || openid == "" || ver == "" { | 1266 | if goldnum == 0 || uuid == 0 || gameid == "" || channel == "" || openid == "" || ver == "" { |
1258 | logger.Error("GetCashFromSDK param empty") | 1267 | logger.Error("GetCashFromSDK param empty") |
1259 | return 0, errors.New("param empty") | 1268 | return 0, errors.New("param empty") |
@@ -1366,6 +1375,9 @@ func GetCashList(uuid int, gameid string, channel string, start int, number int) | @@ -1366,6 +1375,9 @@ func GetCashList(uuid int, gameid string, channel string, start int, number int) | ||
1366 | if gameid == "1021" { | 1375 | if gameid == "1021" { |
1367 | SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1021 | 1376 | SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1021 |
1368 | } | 1377 | } |
1378 | + if gameid == "1023" { | ||
1379 | + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1023 | ||
1380 | + } | ||
1369 | var paramlist []string | 1381 | var paramlist []string |
1370 | var params GetCashListDesc | 1382 | var params GetCashListDesc |
1371 | params.Sign_type = "md5" | 1383 | params.Sign_type = "md5" |
src/HttpServer/logic/wechat.go
@@ -95,4 +95,4 @@ func (w *WXUserDataCrypt) Decrypt(encryptedData, iv string) (*WxUserInfo, error) | @@ -95,4 +95,4 @@ func (w *WXUserDataCrypt) Decrypt(encryptedData, iv string) (*WxUserInfo, error) | ||
95 | return nil, ErrAppIDNotMatch | 95 | return nil, ErrAppIDNotMatch |
96 | } | 96 | } |
97 | return &userInfo, nil | 97 | return &userInfo, nil |
98 | -} | ||
99 | \ No newline at end of file | 98 | \ No newline at end of file |
99 | +} |