Explorar o código

feat:p562常用功能调整

fuwencai hai 1 ano
pai
achega
c45c5f78d9
Modificáronse 1 ficheiros con 13 adicións e 5 borrados
  1. 13 5
      service/workDesktop.go

+ 13 - 5
service/workDesktop.go

@@ -79,27 +79,35 @@ func RenewWorkDesktopMenuModeOrCommonly(in *WorkDesktopComprehensiveReq) (r *Wor
 					MgoUserId:    in.MgoUserId,
 				}
 				userPowers := userInfoRpc.GetUserPowers()
-
+				var subBool bool
 				for _, v := range strings.Split(entity.ConfigJson.CommonlyIds, ",") {
 					//  p562 我的订阅判断用户身份
 					if userPowers != nil {
 						if v == "163" { // 我的订阅(大会员)
 							if userPowers.Member.Status <= 0 {
 								continue
+							} else {
+								subBool = true
 							}
-						} else if v == "165" { // 我的订阅(超级订阅)
+						} else if v == "165" && !subBool { // 我的订阅(超级订阅)
 							if userPowers.Vip.Status <= 0 {
 								continue
+							} else {
+								subBool = true
 							}
-						} else if v == "55" { // 我的订阅(商机管理)新版
+						} else if v == "55" && !subBool { // 我的订阅(商机管理)新版
 							if userPowers.Entniche.Status <= 0 || userPowers.Entniche.IsNew <= 0 {
 								continue
+							} else {
+								subBool = true
 							}
-						} else if v == "515" { // 我的订阅(商机管理)老版
+						} else if v == "515" && !subBool { // 我的订阅(商机管理)老版
 							if userPowers.Entniche.Status <= 0 || userPowers.Entniche.IsNew > 0 {
 								continue
+							} else {
+								subBool = true
 							}
-						} else if v == "167" { // 我的订阅
+						} else if v == "167" && !subBool { // 我的订阅
 							if userPowers.Vip.Status > 0 || userPowers.Member.Status > 0 || userPowers.Entniche.Status > 0 {
 								continue
 							}