浏览代码

feat:商机管理用户

wangshan 2 年之前
父节点
当前提交
0f8e12ba4b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      entity/user.go

+ 1 - 1
entity/user.go

@@ -78,7 +78,6 @@ func AutoUserPowerInfo(userId, appId string, internalTime int, bigMemberOff bool
 						continue
 					}
 					//entNicheInfo := (*entNicheInfos)[0]
-					UserPowerMap["100"] = 1
 					switch MC.IntAll(entNicheInfo["isNew"]) {
 					case 1: //新版商机管理
 						UserPowerMap["110"] = 1
@@ -89,6 +88,7 @@ func AutoUserPowerInfo(userId, appId string, internalTime int, bigMemberOff bool
 							UserPowerMap["112"] = 1
 						}
 					case 0: //老版商机管理
+						UserPowerMap["100"] = 1
 						switch MC.IntAll(entNicheInfo["role_id"]) {
 						case 1: //部门管理员
 							UserPowerMap["101"] = 1