Explorar el Código

feat:大会员权限细分判断

wangshan hace 2 años
padre
commit
5584ae949b
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      entity/user.go

+ 1 - 0
entity/user.go

@@ -82,6 +82,7 @@ func (m *WorkDesktopMenu) AutoUserPowerInfo() map[string]int {
 					domainBool = true
 					isFree = false
 					UserPowerMap["0"] = memberStatus
+					UserPowerMap[strconv.Itoa(50+memberStatus)] = 1
 					//是否是子账号 而且 子账号被启用
 					if (*data)["s_member_mainid"] != nil && MC.ObjToString((*data)["s_member_mainid"]) != "" && MC.IntAllDef((*data)["i_member_sub_status"], 0) > 0 {
 						mainUserId = MC.ObjToString((*data)["s_member_mainid"])