From 2cf1e6c39736319377078977486cb9bcc5b90f21 Mon Sep 17 00:00:00 2001 From: hujiebin Date: Wed, 22 Mar 2023 11:16:46 +0800 Subject: [PATCH] =?UTF-8?q?feat:nextExp=E9=BB=98=E8=AE=A4=E7=94=A8?= =?UTF-8?q?=E6=9C=80=E5=A4=A7=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- route/group_power_r/group_power.go | 4 ++-- route/group_power_r/group_rank.go | 2 +- route/group_power_r/inner.go | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/route/group_power_r/group_power.go b/route/group_power_r/group_power.go index 73dadb8..cec52b4 100644 --- a/route/group_power_r/group_power.go +++ b/route/group_power_r/group_power.go @@ -749,7 +749,7 @@ func GroupPowerInfo(c *gin.Context) (*mycontext.MyContext, error) { return myContext, err } grade := gradeM[gp.ID] - nextExp := mysql.Num(0) + nextExp := groupPower_e.GroupPowerGradeExp[groupPower_e.GroupPowerGradeMax] if grade.Grade != groupPower_e.GroupPowerGradeMax { nextExp = groupPower_e.GroupPowerGradeExp[grade.Grade+1] } @@ -1450,7 +1450,7 @@ func GroupPowerSetInfo(c *gin.Context) (*mycontext.MyContext, error) { return myContext, err } grade := gradeM[gp.ID] - nextExp := mysql.Num(0) + nextExp := groupPower_e.GroupPowerGradeExp[groupPower_e.GroupPowerGradeMax] if grade.Grade != groupPower_e.GroupPowerGradeMax { nextExp = groupPower_e.GroupPowerGradeExp[grade.Grade+1] } diff --git a/route/group_power_r/group_rank.go b/route/group_power_r/group_rank.go index 6aebe50..0849317 100644 --- a/route/group_power_r/group_rank.go +++ b/route/group_power_r/group_rank.go @@ -261,7 +261,7 @@ func GroupPowerGradeDetail(c *gin.Context) (*mycontext.MyContext, error) { return myContext, bizerr.GroupNotFound } grade := gradeM[groupPowerId] - nextExp := mysql.Num(0) + nextExp := groupPower_e.GroupPowerGradeExp[groupPower_e.GroupPowerGradeMax] if grade.Grade != groupPower_e.GroupPowerGradeMax { nextExp = groupPower_e.GroupPowerGradeExp[grade.Grade+1] } diff --git a/route/group_power_r/inner.go b/route/group_power_r/inner.go index 11989a1..b02870b 100644 --- a/route/group_power_r/inner.go +++ b/route/group_power_r/inner.go @@ -77,10 +77,10 @@ func MGetGroupPowers(c *gin.Context) (*mycontext.MyContext, error) { func Test(c *gin.Context) (*mycontext.MyContext, error) { var model = domain.CreateModelNil() - if err := msg_m.NewUserRecord(model, 4522, msg_e.GroupPowerUserJoin, "frozen", 4522, "", "", "", "", "").Persistent(); err != nil { + if err := msg_m.NewUserRecord(model, 4549, msg_e.GroupPowerExpireNotice, "", 4549, "", "", "", "", "").Persistent(); err != nil { return nil, err } - mgrUser, _ := user_m.GetUser(model, 4522) + mgrUser, _ := user_m.GetUser(model, 4549) err := msg_m.SendEmasMsgAssistant(model, mgrUser.ExternalId, mgrUser.DeviceType) if err != nil { return nil, err -- 2.22.0