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