diff --git a/src/HttpServer/logic/function.go b/src/HttpServer/logic/function.go index adc24c3..16a743c 100644 --- a/src/HttpServer/logic/function.go +++ b/src/HttpServer/logic/function.go @@ -146,6 +146,6 @@ func GetUserData(uuid int, resp *UserLoginResp) error{ } func AddCoinToSdk(uuid int,goldnum int,gameid string,channel string,atype int) (int,error) { - + //暂时先不对接 接口调通遗憾对接后台 return 0,nil } \ No newline at end of file diff --git a/src/HttpServer/logic/httpserver.go b/src/HttpServer/logic/httpserver.go index e3cf7de..1df2bf5 100644 --- a/src/HttpServer/logic/httpserver.go +++ b/src/HttpServer/logic/httpserver.go @@ -57,7 +57,7 @@ func Drawguangold(w http.ResponseWriter, r *http.Request) { if Uuid == 0 { SetHeader(w) - logger.Error("Uuid is nil!") + //logger.Error("Uuid is nil!") return } result, _ := ioutil.ReadAll(r.Body) @@ -79,7 +79,7 @@ func Getguangold(w http.ResponseWriter, r *http.Request) { if Uuid == 0 { SetHeader(w) - logger.Error("Uuid is nil!") + //logger.Error("Uuid is nil!") return } result, _ := ioutil.ReadAll(r.Body) @@ -100,7 +100,7 @@ func Queryguaninfo(w http.ResponseWriter, r *http.Request) { if Uuid == 0 { SetHeader(w) - logger.Error("Uuid is nil!") + //logger.Error("Uuid is nil!") return } result, _ := ioutil.ReadAll(r.Body) @@ -122,7 +122,7 @@ func Watchads(w http.ResponseWriter, r *http.Request) { if Uuid == 0 { SetHeader(w) - logger.Error("Uuid is nil!") + //logger.Error("Uuid is nil!") return } result, _ := ioutil.ReadAll(r.Body) @@ -143,7 +143,7 @@ func UserLogin(w http.ResponseWriter, r *http.Request) { if Uuid == 0 { SetHeader(w) - logger.Error("Uuid is nil!") + //logger.Error("Uuid is nil!") return } result, _ := ioutil.ReadAll(r.Body) diff --git a/src/HttpServer/logic/logic.go b/src/HttpServer/logic/logic.go index c1a1d1f..9713ae5 100644 --- a/src/HttpServer/logic/logic.go +++ b/src/HttpServer/logic/logic.go @@ -151,7 +151,7 @@ func HandlerDrawguangold(w http.ResponseWriter, data string, uuid int) { //todo 此处需要调佣SDK接口通知金币变化 - realnum,err := AddCoinToSdk(uuid,rdata.Goldnum,rdata.Gameid,rdata.Channel,100) + _,err = AddCoinToSdk(uuid,rdata.Goldnum,rdata.Gameid,rdata.Channel,100) if err != nil { logger.Error("Drawgold failed err=%v", err) resp.Message = "从存钱罐提取金币失败了" @@ -160,7 +160,7 @@ func HandlerDrawguangold(w http.ResponseWriter, data string, uuid int) { } uinfo.GuanGold = uinfo.GuanGold - rdata.Goldnum - uinfo.RealGold = realnum + uinfo.RealGold += rdata.Goldnum resp.Data.Guangold = uinfo.GuanGold resp.Data.Wallgold = uinfo.RealGold -- libgit2 0.21.0