From 4d58a75d53eef8d93f620fc0bb74ab8a32106763 Mon Sep 17 00:00:00 2001 From: liwei1dao Date: Wed, 27 Sep 2023 18:04:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=AD=A6=E9=A6=86=E7=BA=A2?= =?UTF-8?q?=E7=82=B9=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- comm/const.go | 4 ++-- modules/practice/module.go | 20 ++++++++++---------- modules/reddot/api_getall.go | 4 ++-- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/comm/const.go b/comm/const.go index 947093777..ff0dbcdb5 100644 --- a/comm/const.go +++ b/comm/const.go @@ -635,8 +635,8 @@ const ( //每日任务 Reddot25101 ReddotType = 25101 // 每日任务进度红点 //武馆 - Reddot26101 ReddotType = 26101 // 每日一练 - Reddot26201 ReddotType = 26201 // 今日剩余训练次数:x + Reddot18106 ReddotType = 18106 // 每日一练 + Reddot18111 ReddotType = 18111 // 今日剩余训练次数:x //云朵签到 Reddot27101 ReddotType = 27101 // 签到进度 //巨怪商队跑商 前端处理 diff --git a/modules/practice/module.go b/modules/practice/module.go index 32ceeec3e..803c131af 100644 --- a/modules/practice/module.go +++ b/modules/practice/module.go @@ -469,35 +469,35 @@ func (this *Practice) Reddot(session comm.IUserSession, rid ...comm.ReddotType) } for _, v := range rid { switch v { - case comm.Reddot26101: + case comm.Reddot18106: if userex, err = this.ModuleUser.GetUserExpand(session.GetUserId()); err != nil { this.Errorln(err) return } - reddot[comm.Reddot26101] = &pb.ReddotItem{ - Rid: int32(comm.Reddot26101), + reddot[comm.Reddot18106] = &pb.ReddotItem{ + Rid: int32(comm.Reddot18106), Activated: true, Progress: room.Gymrefresh, Total: 1, } if userex.Globalbuff == 0 { - reddot[comm.Reddot26101].Progress = 0 + reddot[comm.Reddot18106].Progress = 0 } else { - reddot[comm.Reddot26101].Progress = 1 + reddot[comm.Reddot18106].Progress = 1 } break - case comm.Reddot26201: + case comm.Reddot18111: if totalusenum > 0 { - reddot[comm.Reddot26201] = &pb.ReddotItem{ - Rid: int32(comm.Reddot26201), + reddot[comm.Reddot18111] = &pb.ReddotItem{ + Rid: int32(comm.Reddot18111), Activated: true, Progress: usenum, Total: totalusenum, } } else { - reddot[comm.Reddot26201] = &pb.ReddotItem{ - Rid: int32(comm.Reddot26201), + reddot[comm.Reddot18111] = &pb.ReddotItem{ + Rid: int32(comm.Reddot18111), Activated: false, } } diff --git a/modules/reddot/api_getall.go b/modules/reddot/api_getall.go index c71135548..04770a263 100644 --- a/modules/reddot/api_getall.go +++ b/modules/reddot/api_getall.go @@ -50,8 +50,8 @@ func (this *apiComp) GetAll(session comm.IUserSession, req *pb.ReddotGetAllReq) //武馆 for k, v := range this.module.practice.Reddot(session, - comm.Reddot26101, - comm.Reddot26201, + comm.Reddot18106, + comm.Reddot18111, ) { reddot[int32(k)] = v }