Commit 8d97c9657ab72f2e2c9a13ae64d0f46dc7ea4f00
1 parent
de84c2b6
Exists in
master
提交
Showing
1 changed file
with
7 additions
and
2 deletions
Show diff stats
src/HttpServer/logic/httpserver.go
@@ -249,7 +249,12 @@ func Addcoin(w http.ResponseWriter, r *http.Request) { | @@ -249,7 +249,12 @@ func Addcoin(w http.ResponseWriter, r *http.Request) { | ||
249 | 249 | ||
250 | func Testapi(w http.ResponseWriter, r *http.Request) { | 250 | func Testapi(w http.ResponseWriter, r *http.Request) { |
251 | logger.Info("Testapiddt") | 251 | logger.Info("Testapiddt") |
252 | - money := 100 | 252 | + realgold, err := AddCoinToSdk(10199, 100000, "1004", "test", 99) |
253 | + if err != nil { | ||
254 | + logger.Error("Testapi failed") | ||
255 | + } | ||
256 | + logger.Info("Testapi=%v", realgold) | ||
257 | + /*money := 100 | ||
253 | //GetCashFromSDK(uuid, drawnum, gameid, channel, rdata.Openid, uinfo.NickName, uinfo.HeadUrl, rdata.Ver, checkcoin) | 258 | //GetCashFromSDK(uuid, drawnum, gameid, channel, rdata.Openid, uinfo.NickName, uinfo.HeadUrl, rdata.Ver, checkcoin) |
254 | gold, err := GetCashFromSDK(10199, money, "1004", "test", "oceyQ1FlbsEvaFs5HfwzWRTrzpMM", "无悔", | 259 | gold, err := GetCashFromSDK(10199, money, "1004", "test", "oceyQ1FlbsEvaFs5HfwzWRTrzpMM", "无悔", |
255 | "http://thirdwx.qlogo.cn/mmopen/vi_32/2WqOgRgUVzqRwUPTMdicrOVrK8ka8QPekZuQ9LJYxSgI0vxDBFxKwUdyMdpyAm1n3LJhjQHw5zj2qppVCGmS5icw/132", | 260 | "http://thirdwx.qlogo.cn/mmopen/vi_32/2WqOgRgUVzqRwUPTMdicrOVrK8ka8QPekZuQ9LJYxSgI0vxDBFxKwUdyMdpyAm1n3LJhjQHw5zj2qppVCGmS5icw/132", |
@@ -257,7 +262,7 @@ func Testapi(w http.ResponseWriter, r *http.Request) { | @@ -257,7 +262,7 @@ func Testapi(w http.ResponseWriter, r *http.Request) { | ||
257 | if err != nil { | 262 | if err != nil { |
258 | logger.Error("Testapi failed err=%v", err) | 263 | logger.Error("Testapi failed err=%v", err) |
259 | } | 264 | } |
260 | - logger.Info("Testapi gold=%v", gold) | 265 | + logger.Info("Testapi gold=%v", gold)*/ |
261 | /*SetHeader(w) | 266 | /*SetHeader(w) |
262 | type TesaApiData struct { | 267 | type TesaApiData struct { |
263 | Type int `json:"type"` //1金币 2经验 3存钱罐次数 6累计登录天数 | 268 | Type int `json:"type"` //1金币 2经验 3存钱罐次数 6累计登录天数 |