Browse Source

feat:采购单位画像 未登录访问权限

wangshan 2 years ago
parent
commit
de41030d45
1 changed files with 8 additions and 5 deletions
  1. 8 5
      src/jfw/front/frontRouter.go

+ 8 - 5
src/jfw/front/frontRouter.go

@@ -6,6 +6,7 @@ import (
 	"jy/src/jfw/wx"
 	"net/url"
 	"regexp"
+	"strings"
 
 	"jy/src/jfw/jyutil"
 
@@ -184,14 +185,16 @@ func (this *CommonRouter) doXspcPage() error {
 
 // 商机管理
 func (this *CommonRouter) EntpcIndex() error {
-	return this.doEntpcPage()
+	return this.doEntpcPage("")
 }
 func (this *CommonRouter) EntpcPage(htmlPage string) error {
-	return this.doEntpcPage()
+	return this.doEntpcPage(htmlPage)
 }
-func (this *CommonRouter) doEntpcPage() error {
+func (this *CommonRouter) doEntpcPage(htmlPage string) error {
+	//P325 采购单位搜索调整,未登录用户也能访问采购单位画像
+	///entpc/unit_portrayal/天津银行股份有限公司
 	userid, _ := this.GetSession("userId").(string)
-	if userid == "" {
+	if !strings.Contains(htmlPage, "unit_portrayal") && userid == "" {
 		return this.Redirect("/notin/page")
 	}
 	return this.Render(fmt.Sprintf("/frontRouter/pc/entpc/sess/index.html"))
@@ -292,7 +295,7 @@ func (this *CommonRouter) ActivityLeads(sign string) error {
 
 // 组织架构
 func (this *CommonRouter) OrgpcIndex() error {
-	return this.doEntpcPage()
+	return this.doEntpcPage("")
 }
 func (this *CommonRouter) OrgpcPage(htmlPage string) error {
 	return this.doOrgpcPage()