Commit fccffdde authored by chenweijian's avatar chenweijian

3.7

parent 486e32dc
......@@ -80,7 +80,8 @@ func GetGroupPowerMaxMemberNum(model *domain.Model, familyId uint64, groupPowerG
//检查是否是贵族
if flag, err := noble_m.CheckNobleLevel(model.Db, ownerId, 6); err != nil {
} else if flag {
newNumMap := map[groupPower_e.GroupPowerGrade]int{1: 400, 2: 600, 3: 1000, 4: 1400}
newNumMap := map[groupPower_e.GroupPowerGrade]int{groupPower_e.GroupPowerGrade0: 400, groupPower_e.GroupPowerGrade1: 600,
groupPower_e.GroupPowerGrade2: 1000, groupPower_e.GroupPowerGrade3: 1400}
if newNum, ok := newNumMap[groupPowerGrade]; ok {
maxNum = newNum
}
......
......@@ -5,6 +5,7 @@ import (
"git.hilo.cn/hilo-common/domain"
"hilo-group/domain/model/groupPower_m"
"hilo-group/domain/model/group_m"
"hilo-group/domain/service/group_power_s"
"testing"
)
......@@ -23,3 +24,8 @@ func TestIsUseTRTC(t *testing.T) {
fmt.Println("true--------------")
}
}
func TestIsMaxMember(t *testing.T) {
maxNum := group_power_s.GetGroupPowerMaxMemberNum(domain.CreateModelNil(), 263, grade.Grade)
fmt.Println("true--------------")
}
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