From c7848437f71c7ab9778c667f2968068bc4223212 Mon Sep 17 00:00:00 2001 From: liwei1dao Date: Fri, 19 Jan 2024 22:25:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/viking/api_sweep.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/viking/api_sweep.go b/modules/viking/api_sweep.go index 8d9d43e4f..2e7a868b3 100644 --- a/modules/viking/api_sweep.go +++ b/modules/viking/api_sweep.go @@ -119,6 +119,7 @@ func (this *apiComp) Sweep(session comm.IUserSession, req *pb.VikingSweepReq) (e ps = 0 reward = make([]*cfg.Gameatn, 0) consume = make([]*cfg.Gameatn, 0) + consumeatns = make([]*pb.UserAssets, 0) if v.WinSide == 1 { bWin = true } @@ -205,6 +206,7 @@ func (this *apiComp) Sweep(session comm.IUserSession, req *pb.VikingSweepReq) (e tasks = append(tasks, comm.GetBuriedParam(comm.Rtype78, req.BossId, v.Costtime, req.Difficulty)) tasks = append(tasks, comm.GetBuriedParam(comm.Rtype76, 1, req.BossId)) tasks = append(tasks, comm.GetBuriedParam(comm.Rtype77, 1, req.BossId, req.Difficulty)) + for _, v := range consume { consumeatns = append(consumeatns, &pb.UserAssets{ A: v.A,