wangshan il y a 3 jours
Parent
commit
062cca1046
1 fichiers modifiés avec 6 ajouts et 1 suppressions
  1. 6 1
      internal/middleware/cookie.go

+ 6 - 1
internal/middleware/cookie.go

@@ -1,10 +1,15 @@
 package middleware
 
-import "github.com/gogf/gf/v2/net/ghttp"
+import (
+	"github.com/gogf/gf/v2/frame/g"
+	"github.com/gogf/gf/v2/net/ghttp"
+	"github.com/gogf/gf/v2/os/gctx"
+)
 
 // SetSeoRefer seo来源标记
 func SetSeoRefer(r *ghttp.Request) {
 	val := r.Cookie.Get("SESSIONID")
+	g.Log().Info(gctx.New(), "-------------------------------", val.String())
 	if !val.IsNil() && val.String() != "" {
 		if val = r.Cookie.Get("SeoRefer"); val.IsNil() {
 			r.Cookie.Set("SeoRefer", r.Referer())