Browse Source

feat:处理notin referer问题

wangchuanjin 1 year ago
parent
commit
e76b87afda
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/jfw/front/front.go

+ 1 - 1
src/jfw/front/front.go

@@ -515,7 +515,7 @@ func (f *Front) Topics() error {
 func (f *Front) Notin() error {
 	refer := "/"
 	tmp := f.Header("Referer")
-	if tmp != f.Request.URL.String() && strings.Contains(tmp, config.Sysconfig["webdomain"].(string)) {
+	if tmp != f.Scheme()+"://"+f.Request.Host+f.Url() && strings.Contains(tmp, config.Sysconfig["webdomain"].(string)) {
 		refer = tmp
 	}
 	userId, _ := f.GetSession("userId").(string)