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