Browse Source

Merge branch 'SCRUM-2627' into dev

paddy 3 years ago
parent
commit
70820baf03
1 changed files with 2 additions and 4 deletions
  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) {
 func (wc *Wechat) GenTestQrCode(scene, page string) (r io.Reader, err error) {
 	ret := "https://open.weixin.qq.com/sns/getexpappinfo" +
 	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"
 		"#wechat-redirect"
 	code, err := qr.Encode(ret, qr.L, qr.Unicode)
 	code, err := qr.Encode(ret, qr.L, qr.Unicode)
 	if err != nil {
 	if err != nil {