Bläddra i källkod

feat:模拟回调

wangshan 2 år sedan
förälder
incheckning
eb4b3b661e
1 ändrade filer med 2 tillägg och 1 borttagningar
  1. 2 1
      src/jfw/front/shorturl.go

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

@@ -106,7 +106,8 @@ func (s *Short) Article(stype, id string) error {
 				}
 			} else if isWxB {
 				//所有参数都不再使用,跳到微信验证用户
-				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)
 			}
 		}
 	}