diff --git a/route/group_power_r/group_power.go b/route/group_power_r/group_power.go index 73dadb8c1ca3f2f98ed5fddebf57dafc22adb78c..cec52b414edaba08ed1e8c7d15db65473693d4a6 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 6aebe500b80a8d155a43d9065c2bafd03e61a150..0849317f919ef21a078db36a0a41746967e6e761 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 11989a19a6696f3cc0f91890e148f2e87a043a96..b02870bd48f8c2b459942526754648803c6bc074 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