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)