Procházet zdrojové kódy

feat:商机管理用户

wangshan před 2 roky
rodič
revize
0f8e12ba4b
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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