Эх сурвалжийг харах

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

wangshan 2 жил өмнө
parent
commit
98caa01688

+ 3 - 0
src/jfw/front/shorturl.go

@@ -90,6 +90,8 @@ func (s *Short) Article(stype, id string) error {
 	userId, _ := s.GetSession("userId").(string)
 	//未登录用户是否访问的微信浏览器
 	if userId == "" {
+		log.Println(isWxB, "----IsWxBrowserContent[stype]:", IsWxBrowserContent[stype])
+		log.Println("host:", s.Request.RequestURI)
 		if IsWxBrowserContent[stype] {
 			if s.GetString("state") == "wx" {
 				//微信跳回来的
@@ -105,6 +107,7 @@ 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)
 			}