Ver Fonte

Merge branch 'feature/v4.8.81_ws' of https://jygit.jydev.jianyu360.cn/qmx/jy into feature/v4.8.81_ws

fuwencai há 1 ano atrás
pai
commit
8e08209f94
2 ficheiros alterados com 4 adições e 7 exclusões
  1. 3 6
      src/jfw/filter/cookie.go
  2. 1 1
      src/jfw/jyutil/sessionkeep.go

+ 3 - 6
src/jfw/filter/cookie.go

@@ -1,10 +1,9 @@
 package filter
 
 import (
-	"app.yhyue.com/moapp/jypkg/common/src/qfw/util/jy"
-	"log"
-	"net/http"
-	"strings"
+    "app.yhyue.com/moapp/jypkg/common/src/qfw/util/jy"
+    "net/http"
+    "strings"
 )
 
 // CookieInfo 信息
@@ -15,14 +14,12 @@ type CookieInfo struct {
 
 // Do 继承过滤器方法
 func (ci *CookieInfo) Do() {
-	log.Println(ci.R.Referer(), "----------------------", ci.R.RequestURI)
 	if crr := ci.R.Referer(); crr != "" {
 		if strings.Contains(crr, "cooperate") {
 			match := strings.Split(crr, "cooperate/")
 			if len(match) > 1 {
 				jy.SetCookieValue(ci.W, jy.ChannelCookieName, match[1], 172800) //两天
 			}
-			log.Println("---------------pc-------------", match)
 		}
 	}
 }

+ 1 - 1
src/jfw/jyutil/sessionkeep.go

@@ -97,7 +97,7 @@ func (sk *SessionKeep) Do() bool {
 			}
 		} else {
 			if strings.HasPrefix(rqu, "/article/") {
-				if strings.HasPrefix(rqu, "/article/content") || strings.HasPrefix(rqu, "/article/mailprivate") || strings.HasPrefix(rqu, "/article/bdprivate") || strings.HasPrefix(rqu, "/article/bdcontent") || reg.MatchString(rhdua) || strings.HasPrefix(rqu, "/article/indexcontent") {
+				if strings.HasPrefix(rqu, "/article/content") || strings.HasPrefix(rqu, "/article/mailprivate") || strings.HasPrefix(rqu, "/article/bdprivate") || strings.HasPrefix(rqu, "/article/bdcontent") || reg.MatchString(rhdua) || strings.HasPrefix(rqu, "/article/indexcontent") || strings.HasPrefix(rqu, "/article/entservice") {
 					return true
 				} else { //只处理pc
 					sk.SetSession["referer"] = sk.R.RequestURI