Browse Source

Merge branch 'dev/v4.8.47_fuwencai' of qmx/jy into feature/v4.8.47

wangshan 2 năm trước cách đây
mục cha
commit
f899911328
1 tập tin đã thay đổi với 2 bổ sung4 xóa
  1. 2 4
      src/jfw/front/shorturl.go

+ 2 - 4
src/jfw/front/shorturl.go

@@ -90,8 +90,6 @@ func (s *Short) Article(stype, id string) error {
 	userId, _ := s.GetSession("userId").(string)
 	//未登录用户是否访问的微信浏览器
 	if userId == "" {
-		log.Println(isWxB, "----IsWxBrowserContent[stype]:", IsWxBrowserContent[stype])
-		log.Println(s.Request.Host, "----host:", s.Request.RequestURI)
 		if IsWxBrowserContent[stype] {
 			if s.GetString("state") == "wx" {
 				//微信跳回来的
@@ -107,9 +105,9 @@ func (s *Short) Article(stype, id string) error {
 					}
 				}
 			} else if isWxB {
-				log.Println("url:", fmt.Sprintf(config.Wxoauth, url.QueryEscape(s.Site()+s.Url()), "wx"))
 				//所有参数都不再使用,跳到微信验证用户
-				return s.Redirect(fmt.Sprintf(config.Wxoauth, url.QueryEscape(s.Site()+s.Url()), "wx"), 302)
+				//return s.Redirect(fmt.Sprintf(config.Wxoauth, url.QueryEscape(s.Site()+s.Url()), "wx"), 302)
+				return s.Redirect(fmt.Sprintf(config.Wxoauth, url.QueryEscape(config.Sysconfig["webdomain"].(string)+s.Url()), "wx"), 302)
 			}
 		}
 	}