Commit 8d97c9657ab72f2e2c9a13ae64d0f46dc7ea4f00

Authored by 陆恒
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 249  
250 250 func Testapi(w http.ResponseWriter, r *http.Request) {
251 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 258 //GetCashFromSDK(uuid, drawnum, gameid, channel, rdata.Openid, uinfo.NickName, uinfo.HeadUrl, rdata.Ver, checkcoin)
254 259 gold, err := GetCashFromSDK(10199, money, "1004", "test", "oceyQ1FlbsEvaFs5HfwzWRTrzpMM", "无悔",
255 260 "http://thirdwx.qlogo.cn/mmopen/vi_32/2WqOgRgUVzqRwUPTMdicrOVrK8ka8QPekZuQ9LJYxSgI0vxDBFxKwUdyMdpyAm1n3LJhjQHw5zj2qppVCGmS5icw/132",
... ... @@ -257,7 +262,7 @@ func Testapi(w http.ResponseWriter, r *http.Request) {
257 262 if err != nil {
258 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 266 /*SetHeader(w)
262 267 type TesaApiData struct {
263 268 Type int `json:"type"` //1金币 2经验 3存钱罐次数 6累计登录天数
... ...