Explorar o código

Merge branch 'SCRUM-2627' into dev

paddy %!s(int64=3) %!d(string=hai) anos
pai
achega
43cca8495f
Modificáronse 1 ficheiros con 2 adicións e 4 borrados
  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 {