Explorar o código

Merge branch 'dev/v4.8.27.4_wh' of qmx/jy into hotfix/v4.8.27.4

王浩 %!s(int64=2) %!d(string=hai) anos
pai
achega
c4c83d8f76
Modificáronse 1 ficheiros con 3 adicións e 7 borrados
  1. 3 7
      src/jfw/front/shorturl.go

+ 3 - 7
src/jfw/front/shorturl.go

@@ -360,14 +360,10 @@ func (s *Short) LoginCommon(userId, stype, id string) error {
 		canRead := false
 		if ((isVip && isOldVip) || isMember || isEntniche) || //老版本vip、大会员、商机管理
 			((isVip && !isOldVip) && (!(util.ObjToString(obj["subtype"]) == "拟建" || util.ObjToString(obj["subtype"]) == "采购意向"))) || //新超级订阅非采购意向”和“拟建项目”
-			stype == "mailprivate" || stype == "indexcontent" { //邮箱推送
+			stype == "mailprivate" || stype == "indexcontent" || stype == "bdprivate" { //邮箱推送
 			canRead = true
 		} else {
-			if stype == "bdprivate" {
-				canRead = true
-			} else {
-				canRead = SeeDetailLimit(obj, userId, sid)
-			}
+			canRead = SeeDetailLimit(obj, userId, sid)
 		}
 		if stype == "advancedProject" {
 			newCanRead := false
@@ -485,7 +481,7 @@ func (s *Short) LoginCommon(userId, stype, id string) error {
 			var node bool
 			if ((isVip && isOldVip) || isMember || isEntniche) || //老版本vip、大会员、商机管理
 				((isVip && !isOldVip) && (!(util.ObjToString(obj["subtype"]) == "拟建" || util.ObjToString(obj["subtype"]) == "采购意向"))) || //新超级订阅非采购意向”和“拟建项目”
-				stype == "mailprivate" || stype == "indexcontent" { //邮箱推送
+				stype == "mailprivate" || stype == "indexcontent" || stype == "bdprivate" { //邮箱推送
 				node = true
 			} else {
 				_, _, _, objc := pcVRT(sid, indust, stype, isVip || isMember || isEntniche)