Commit 8de42aeebd70fc7d5f5053c92cea2e5f142fe464

Authored by 陆恒
1 parent b4b5d328
Exists in master

提交

src/HttpServer/logic/constdef.go
@@ -54,6 +54,7 @@ const ( @@ -54,6 +54,7 @@ const (
54 //XIAOXINGXING_SERVERKEYTEST = "e2cd22102143cdcd9c181f962d031685" 54 //XIAOXINGXING_SERVERKEYTEST = "e2cd22102143cdcd9c181f962d031685"
55 XIAOXINGXING_SERVERKEYTEST = "33e0c3238c108a36d87025544c6a2d2f" 55 XIAOXINGXING_SERVERKEYTEST = "33e0c3238c108a36d87025544c6a2d2f"
56 XIAOXINGXING_SERVERKEYTEST_1015 = "a81eb66afd923d24e65a4b542592bc41" 56 XIAOXINGXING_SERVERKEYTEST_1015 = "a81eb66afd923d24e65a4b542592bc41"
  57 + XIAOXINGXING_SERVERKEYTEST_1017 = "ea3bf2acd640db3e75133c9f3cb43c0fs"
57 //XIAOXINGXING_SDKURLOFFICAL = "https://testapi-gamesdk.d3games.com/" 58 //XIAOXINGXING_SDKURLOFFICAL = "https://testapi-gamesdk.d3games.com/"
58 XIAOXINGXING_SDKURLOFFICAL = "https://api.gamesdk.hmjoy.cn/" 59 XIAOXINGXING_SDKURLOFFICAL = "https://api.gamesdk.hmjoy.cn/"
59 ) 60 )
src/HttpServer/logic/function.go
@@ -473,9 +473,9 @@ func DoHttpPost(bys []byte, apistr string) (string, error) { @@ -473,9 +473,9 @@ func DoHttpPost(bys []byte, apistr string) (string, error) {
473 func GetCoinFromSdk(uuid int, gameid string, channel string) (int, error) { 473 func GetCoinFromSdk(uuid int, gameid string, channel string) (int, error) {
474 474
475 SERVERKEY := conf.GetCoinConf().Key 475 SERVERKEY := conf.GetCoinConf().Key
476 - /*if gameid == "1015" {  
477 - SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1015  
478 - }*/ 476 + if gameid == "1017" {
  477 + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1017
  478 + }
479 479
480 var paramlist []string 480 var paramlist []string
481 var params GetCoinDesc 481 var params GetCoinDesc
@@ -809,9 +809,9 @@ func GetUserSelfData(uniqueid string) (string, error) { @@ -809,9 +809,9 @@ func GetUserSelfData(uniqueid string) (string, error) {
809 809
810 func GetCashList(uuid int, gameid string, channel string, start int, number int) (*[]WithDrawRecord, error) { 810 func GetCashList(uuid int, gameid string, channel string, start int, number int) (*[]WithDrawRecord, error) {
811 SERVERKEY := conf.GetCoinConf().Key 811 SERVERKEY := conf.GetCoinConf().Key
812 - /*if gameid == "1015" {  
813 - SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1015  
814 - }*/ 812 + if gameid == "1017" {
  813 + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1017
  814 + }
815 815
816 var paramlist []string 816 var paramlist []string
817 var params GetCashListDesc 817 var params GetCashListDesc
@@ -879,6 +879,9 @@ func GetCashList(uuid int, gameid string, channel string, start int, number int) @@ -879,6 +879,9 @@ func GetCashList(uuid int, gameid string, channel string, start int, number int)
879 func GetCashFromSDK(uuid int, goldnum int, gameid, channel, openid, nickname, headurl, ver string, checkcoin int) (int, error) { 879 func GetCashFromSDK(uuid int, goldnum int, gameid, channel, openid, nickname, headurl, ver string, checkcoin int) (int, error) {
880 880
881 SERVERKEY := conf.GetCoinConf().Key 881 SERVERKEY := conf.GetCoinConf().Key
  882 + if gameid == "1017" {
  883 + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1017
  884 + }
882 885
883 if goldnum == 0 || uuid == 0 || gameid == "" || channel == "" || openid == "" || ver == "" { 886 if goldnum == 0 || uuid == 0 || gameid == "" || channel == "" || openid == "" || ver == "" {
884 logger.Error("GetCashFromSDK param empty") 887 logger.Error("GetCashFromSDK param empty")
@@ -977,9 +980,9 @@ func GetCashFromSDK(uuid int, goldnum int, gameid, channel, openid, nickname, he @@ -977,9 +980,9 @@ func GetCashFromSDK(uuid int, goldnum int, gameid, channel, openid, nickname, he
977 980
978 func AddCoinToSdk(uuid int, goldnum int, gameid string, channel string, atype int) (int, error) { 981 func AddCoinToSdk(uuid int, goldnum int, gameid string, channel string, atype int) (int, error) {
979 SERVERKEY := conf.GetCoinConf().Key 982 SERVERKEY := conf.GetCoinConf().Key
980 - /*if gameid == "1015" {  
981 - SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1015  
982 - }*/ 983 + if gameid == "1017" {
  984 + SERVERKEY = XIAOXINGXING_SERVERKEYTEST_1017
  985 + }
983 var paramlist []string 986 var paramlist []string
984 sign_type := "sign_type=md5" 987 sign_type := "sign_type=md5"
985 paramlist = append(paramlist, sign_type) 988 paramlist = append(paramlist, sign_type)