소스 검색

feat:模拟回调

wangshan 2 년 전
부모
커밋
eb4b3b661e
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  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)
 			}
 		}
 	}