Commit 910a5dfc52322f7b63866199f05c9ea224ca11d6
1 parent
799b7b2a
Exists in
master
提交
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
src/HttpServer/logic/logic.go
@@ -697,7 +697,7 @@ func HandlerFetchlvredbag(w http.ResponseWriter, data string, uuid int) { | @@ -697,7 +697,7 @@ func HandlerFetchlvredbag(w http.ResponseWriter, data string, uuid int) { | ||
697 | break | 697 | break |
698 | } | 698 | } |
699 | 699 | ||
700 | - newgold, err := uinfo.AddRedPackect(cfg.Redpacket, 100) | 700 | + _, err = uinfo.AddRedPackect(cfg.Redpacket, 100) |
701 | if err != nil { | 701 | if err != nil { |
702 | logger.Error("HandlerFetchlvredbag GetCatConfig failed=%v", err) | 702 | logger.Error("HandlerFetchlvredbag GetCatConfig failed=%v", err) |
703 | resp.Code = 1 | 703 | resp.Code = 1 |
@@ -707,7 +707,7 @@ func HandlerFetchlvredbag(w http.ResponseWriter, data string, uuid int) { | @@ -707,7 +707,7 @@ func HandlerFetchlvredbag(w http.ResponseWriter, data string, uuid int) { | ||
707 | 707 | ||
708 | uinfo.WaitFetchLv = uinfo.WaitFetchLv[1:] | 708 | uinfo.WaitFetchLv = uinfo.WaitFetchLv[1:] |
709 | 709 | ||
710 | - resp.Data.Redbag = float32(newgold) / 100 | 710 | + resp.Data.Redbag = cfg.Redpacket |
711 | resp.Code = 0 | 711 | resp.Code = 0 |
712 | //保存 | 712 | //保存 |
713 | SaveUserInfo(uinfo, strconv.Itoa(uuid)) | 713 | SaveUserInfo(uinfo, strconv.Itoa(uuid)) |