Ver Fonte

修改 测试服 二维码不能测试的问题

paddy há 3 anos atrás
pai
commit
c069afdbea
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      internal/svc/wechat.go

+ 1 - 1
internal/svc/wechat.go

@@ -175,7 +175,7 @@ func (wc *Wechat) GenGaQrCode(scene, page string) (r io.ReadCloser, err error) {
 func (wc *Wechat) GenTestQrCode(scene, page string) (r io.Reader, err error) {
 	ret := "https://open.weixin.qq.com/sns/getexpappinfo" +
 		"?appid=" + wc.c.Weixin.Appid + "&path=" +
-		url.QueryEscape(page+".html?scene="+scene+"&is_hyaline=true") +
+		url.QueryEscape(url.QueryEscape(page+".html?scene="+scene+"&is_hyaline=true")) +
 		"#wechat-redirect"
 	code, err := qr.Encode(ret, qr.L, qr.Unicode)
 	if err != nil {