From de84c2b6f72f0125cd24f2e1518abd7bb2758295 Mon Sep 17 00:00:00 2001 From: 陆恒 Date: Thu, 16 Jul 2020 10:30:04 +0800 Subject: [PATCH] 提交 --- src/HttpServer/logic/httpserver.go | 9 +++++++++ 1 file changed, 9 insertions(+), 0 deletions(-) diff --git a/src/HttpServer/logic/httpserver.go b/src/HttpServer/logic/httpserver.go index 777962d..134fd7b 100644 --- a/src/HttpServer/logic/httpserver.go +++ b/src/HttpServer/logic/httpserver.go @@ -249,6 +249,15 @@ func Addcoin(w http.ResponseWriter, r *http.Request) { func Testapi(w http.ResponseWriter, r *http.Request) { logger.Info("Testapiddt") + money := 100 + //GetCashFromSDK(uuid, drawnum, gameid, channel, rdata.Openid, uinfo.NickName, uinfo.HeadUrl, rdata.Ver, checkcoin) + gold, err := GetCashFromSDK(10199, money, "1004", "test", "oceyQ1FlbsEvaFs5HfwzWRTrzpMM", "无悔", + "http://thirdwx.qlogo.cn/mmopen/vi_32/2WqOgRgUVzqRwUPTMdicrOVrK8ka8QPekZuQ9LJYxSgI0vxDBFxKwUdyMdpyAm1n3LJhjQHw5zj2qppVCGmS5icw/132", + "2.3.0", 2) + if err != nil { + logger.Error("Testapi failed err=%v", err) + } + logger.Info("Testapi gold=%v", gold) /*SetHeader(w) type TesaApiData struct { Type int `json:"type"` //1金币 2经验 3存钱罐次数 6累计登录天数 -- libgit2 0.21.0