Commit d1d5c633c029a682041e70ce5b3e6da300505636

Authored by 陆恒
1 parent c60955f2
Exists in ver2.3.0 and in 1 other branch ver2.2.8

提交

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