From fd8159fec137fb40f6913d2e2b29a36e0fd0c85f Mon Sep 17 00:00:00 2001 From: liwei1dao Date: Fri, 24 Nov 2023 20:07:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E5=A1=94=E9=98=B2=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/whackamole/api_award.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/whackamole/api_award.go b/modules/whackamole/api_award.go index aa18f6cd3..b587bde1b 100644 --- a/modules/whackamole/api_award.go +++ b/modules/whackamole/api_award.go @@ -50,6 +50,11 @@ func (this *apiComp) Award(session comm.IUserSession, req *pb.WhackamoleAwardReq if errdata, award = this.module.DispenseAtno(session, atns, true); errdata != nil { return } + + this.module.model.Change(session.GetUserId(), map[string]interface{}{ + "levels": info.Levels, + }) + session.SendMsg(string(this.module.GetType()), "award", &pb.WhackamoleAwardResp{Id: req.Id, Award: award}) go this.module.AsynHandleSession(session.Clone(), func(session comm.IUserSession) { this.module.WriteUserLog(session.GetUserId(), comm.GMResAddType, "WhackamoleAwardReq", award)