Browse Source

feat:老版商机管理 统一订阅模式

wangshan 2 years ago
parent
commit
8bfcbb9abe
1 changed files with 6 additions and 6 deletions
  1. 6 6
      entity/user.go

+ 6 - 6
entity/user.go

@@ -161,6 +161,12 @@ func (m *WorkDesktopMenu) AutoUserPowerInfo() map[string]int {
 									case 1: //企业管理员
 										UserPowerMap["102"] = 1
 									}
+									//老版商机管理: model:1-统一订阅,2-个人订阅
+									if MC.IntAll(entNicheInfo["model"]) == 1 {
+										UserPowerMap["103"] = 1
+									} else if MC.IntAll(entNicheInfo["model"]) == 2 {
+										UserPowerMap["104"] = 1
+									}
 								}
 							case 1:
 								//客户管理服务(商机管理服务) [前提:大会员、超级订阅、医械通用户]---免费用户也可以用 (需求调整来自刘苗:产品已确认)
@@ -171,12 +177,6 @@ func (m *WorkDesktopMenu) AutoUserPowerInfo() map[string]int {
 								case 1: //企业管理员
 									UserPowerMap["601"] = 1
 								}
-								//老版商机管理: model:1-统一订阅,2-个人订阅
-								if MC.IntAll(entNicheInfo["model"]) == 1 {
-									UserPowerMap["103"] = 1
-								} else if MC.IntAll(entNicheInfo["model"]) == 2 {
-									UserPowerMap["104"] = 1
-								}
 							}
 						}
 					}