Commit b527be4502c8a92aff4e6651cf9c37819beb17e6

Authored by 陆恒
1 parent c66e4a38

提交

Showing 1 changed file with 6 additions and 1 deletions   Show diff stats
src/HttpServer/logic/httpserver.go
@@ -178,7 +178,12 @@ func Testapi(w http.ResponseWriter, r *http.Request) { @@ -178,7 +178,12 @@ func Testapi(w http.ResponseWriter, r *http.Request) {
178 //金币 178 //金币
179 uinfo.RealGold += rdata.Value 179 uinfo.RealGold += rdata.Value
180 //调用sdk 180 //调用sdk
181 - //AddCoinToSdk() 181 + gold, err := AddCoinToSdk(Uuid, rdata.Value, rdata.Gameid, rdata.Channel, 100)
  182 + if err != nil {
  183 + logger.Error("test ddt! err=%v", err)
  184 + }
  185 + uinfo.RealGold = gold
  186 +
182 } 187 }
183 if rdata.Type == 2 { 188 if rdata.Type == 2 {
184 uinfo.Exp += rdata.Value 189 uinfo.Exp += rdata.Value