Commit 2cf1e6c3 authored by hujiebin's avatar hujiebin

feat:nextExp默认用最大值

parent 06790632
......@@ -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]
}
......
......@@ -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]
}
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment