wangkaiyue 1 éve
szülő
commit
2f6ac31c1f
1 módosított fájl, 5 hozzáadás és 0 törlés
  1. 5 0
      src/jfw/front/frontRouter.go

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

@@ -127,6 +127,11 @@ func (this *CommonRouter) WebIndex() error {
 
 // WebPcPage 前端vue页面公共路由
 func (this *CommonRouter) WebPcPage(page string) error {
+	if userId, _ := this.GetSession("userId").(string); userId == "" { //P414
+		if cc, err := this.GetCookie(jy.ChannelCookieName); err == nil {
+			this.T["cooperateCode"] = cc.Value
+		}
+	}
 	return this.Render(fmt.Sprintf("/micro/web-pc/index.html"))
 }