This commit is contained in:
meixiongfeng 2023-08-12 00:19:06 +08:00
parent ae91a6e10e
commit 64ef4708bb
2 changed files with 2 additions and 1 deletions

View File

@ -66,7 +66,7 @@ func (this *apiComp) Event(session comm.IUserSession, req *pb.StonehengeEventReq
} }
_, bBox := stone.Rooms.Box[req.Eventid] _, bBox := stone.Rooms.Box[req.Eventid]
if stone.Rooms.Eventid[req.Eventid] || bBox { // 重复完成 if stone.Rooms.Eventid[req.Eventid] || !bBox { // 重复完成
errdata = &pb.ErrorData{ errdata = &pb.ErrorData{
Code: pb.ErrorCode_StonehengeRepeatedReward, Code: pb.ErrorCode_StonehengeRepeatedReward,
Title: pb.ErrorCode_StonehengeRepeatedReward.ToString(), Title: pb.ErrorCode_StonehengeRepeatedReward.ToString(),

View File

@ -546,6 +546,7 @@ func (this *User) change(session comm.IUserSession, attr string, add int32) (cha
} }
change.Ps += add change.Ps += add
userEx.ConsumPs += -add userEx.ConsumPs += -add
this.ModuleUiGame.HDPSTodayConsum(session.GetUserId(), change.Ps)
} else { } else {
if change.Ps+add > ggd.PsUl { if change.Ps+add > ggd.PsUl {
change.Ps = ggd.PsUl change.Ps = ggd.PsUl