wangkaiyue 1 سال پیش
والد
کامیت
2f6ac31c1f
1فایلهای تغییر یافته به همراه5 افزوده شده و 0 حذف شده
  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"))
 }