wangchuanjin 1 жил өмнө
parent
commit
5ea24c66cb

+ 2 - 0
src/jfw/filter/pcfilter.go

@@ -4,6 +4,7 @@ import (
 	"fmt"
 	"jy/src/jfw/config"
 	"jy/src/jfw/jyutil"
+	"log"
 	"net/http"
 	"strings"
 	"time"
@@ -33,6 +34,7 @@ func (this *pcFilter) Do() bool {
 	if this.R.Method == "POST" {
 		return true
 	}
+	log.Println(this.R.RequestURI, "---", this.R.UserAgent())
 	if userAgent := this.R.UserAgent(); mobileReg.MatchString(userAgent) || public.CheckWxBrowser(this.R) || strings.Contains(userAgent, "JianyuDebug") {
 		//wx
 		return true