Commit 63868af012ac0fd08ddc834406066c23e9338894
1 parent
aef7a236
Exists in
master
提交gameid
Showing
2 changed files
with
52 additions
and
0 deletions
Show diff stats
src/HttpServer/logic/constdef.go
... | ... | @@ -49,6 +49,10 @@ const ( |
49 | 49 | //XIAOXINGXING_SERVERKEYTEST = "e2cd22102143cdcd9c181f962d031685" |
50 | 50 | XIAOXINGXING_SERVERKEYTEST = "33e0c3238c108a36d87025544c6a2d2f" |
51 | 51 | XIAOXINGXING_SERVERKEYTEST_1015 = "a81eb66afd923d24e65a4b542592bc41" |
52 | + XIAOXINGXING_SERVERKEYTEST_1016 = "1909c8f83d1c162a7dba3ddb28b35b0f" | |
53 | + XIAOXINGXING_SERVERKEYTEST_1019 = "4523e5b2035a58ad60c80f0c0bc4231e" | |
54 | + XIAOXINGXING_SERVERKEYTEST_1020 = "9232e69b0f7173338ecffcf142a10604" | |
55 | + XIAOXINGXING_SERVERKEYTEST_1021 = "bcfb8bd96e5ff84f7f603c3e7e974b90" | |
52 | 56 | //XIAOXINGXING_SDKURLOFFICAL = "https://testapi-gamesdk.d3games.com/" |
53 | 57 | XIAOXINGXING_SDKURLOFFICAL = "https://api.gamesdk.hmjoy.cn/" |
54 | 58 | ) | ... | ... |
src/HttpServer/logic/function.go
... | ... | @@ -934,6 +934,18 @@ func GetCoinFromSdk(uuid int, gameid string, channel string) (int, error) { |
934 | 934 | if gameid == "1015" { |
935 | 935 | SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1015 |
936 | 936 | } |
937 | + if gameid == "1016" { | |
938 | + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1016 | |
939 | + } | |
940 | + if gameid == "1019" { | |
941 | + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1019 | |
942 | + } | |
943 | + if gameid == "1020" { | |
944 | + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1020 | |
945 | + } | |
946 | + if gameid == "1021" { | |
947 | + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1021 | |
948 | + } | |
937 | 949 | |
938 | 950 | var paramlist []string |
939 | 951 | var params GetCoinDesc |
... | ... | @@ -995,6 +1007,18 @@ func AddCoinToSdk(uuid int, goldnum int, gameid string, channel string, atype in |
995 | 1007 | if gameid == "1015" { |
996 | 1008 | SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1015 |
997 | 1009 | } |
1010 | + if gameid == "1016" { | |
1011 | + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1016 | |
1012 | + } | |
1013 | + if gameid == "1019" { | |
1014 | + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1019 | |
1015 | + } | |
1016 | + if gameid == "1020" { | |
1017 | + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1020 | |
1018 | + } | |
1019 | + if gameid == "1021" { | |
1020 | + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1021 | |
1021 | + } | |
998 | 1022 | var paramlist []string |
999 | 1023 | sign_type := "sign_type=md5" |
1000 | 1024 | paramlist = append(paramlist, sign_type) |
... | ... | @@ -1063,6 +1087,18 @@ func GetCashFromSDK(uuid int, goldnum int, gameid, channel, openid, nickname, he |
1063 | 1087 | SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1015 |
1064 | 1088 | } |
1065 | 1089 | |
1090 | + if gameid == "1016" { | |
1091 | + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1016 | |
1092 | + } | |
1093 | + if gameid == "1019" { | |
1094 | + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1019 | |
1095 | + } | |
1096 | + if gameid == "1020" { | |
1097 | + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1020 | |
1098 | + } | |
1099 | + if gameid == "1021" { | |
1100 | + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1021 | |
1101 | + } | |
1066 | 1102 | if goldnum == 0 || uuid == 0 || gameid == "" || channel == "" || openid == "" || ver == "" { |
1067 | 1103 | logger.Error("GetCashFromSDK param empty") |
1068 | 1104 | return 0, errors.New("param empty") |
... | ... | @@ -1162,6 +1198,18 @@ func GetCashList(uuid int, gameid string, channel string, start int, number int) |
1162 | 1198 | if gameid == "1015" { |
1163 | 1199 | SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1015 |
1164 | 1200 | } |
1201 | + if gameid == "1016" { | |
1202 | + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1016 | |
1203 | + } | |
1204 | + if gameid == "1019" { | |
1205 | + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1019 | |
1206 | + } | |
1207 | + if gameid == "1020" { | |
1208 | + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1020 | |
1209 | + } | |
1210 | + if gameid == "1021" { | |
1211 | + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1021 | |
1212 | + } | |
1165 | 1213 | |
1166 | 1214 | var paramlist []string |
1167 | 1215 | var params GetCashListDesc | ... | ... |