Selaa lähdekoodia

Merge branch 'SCRUM-2627' into dev

paddy 3 vuotta sitten
vanhempi
commit
70820baf03
1 muutettua tiedostoa jossa 2 lisäystä ja 4 poistoa
  1. 2 4
      internal/svc/wechat.go

+ 2 - 4
internal/svc/wechat.go

@@ -174,10 +174,8 @@ 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=" + url.QueryEscape(scene) +
-		"&is_hyaline=true" +
+		"?appid=" + wc.c.Weixin.Appid + "&path=" +
+		url.QueryEscape(page+".html&scene="+scene+"&is_hyaline=true") +
 		"#wechat-redirect"
 	code, err := qr.Encode(ret, qr.L, qr.Unicode)
 	if err != nil {