Browse Source

wip:合作商来源路由

wangshan 1 year ago
parent
commit
2df1c265fb
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/jfw/modules/app/src/app/front/wx.go

+ 2 - 2
src/jfw/modules/app/src/app/front/wx.go

@@ -26,8 +26,8 @@ func init() {
 // 微信首页地址
 func (w *WX) Index(pageLabel string) error {
 	log.Println("---sessionId----:", w.Session().Id())
-	//是否是移动
-	if bm := mobileReg.MatchString(w.Header("User-Agent")); bm {
+	//是否是电脑
+	if bm := mobileReg.MatchString(w.Header("User-Agent")); !bm {
 		return w.Redirect(fmt.Sprintf("%s/partner/%s", config.Sysconfig["mainDomainName"].(string), pageLabel))
 	}
 	//未登录