|
@@ -263,22 +263,27 @@ func GetMerchantCanvasCard(c *gin.Context) {
|
|
|
url := "https://api.weixin.qq.com/wxa/getwxacodeunlimit?access_token=" + outQRData.AccessToken
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
if inData.Code == "原始码" {
|
|
|
outData.IsShare = true
|
|
|
+ outData.InvitationCode = "7jb6"
|
|
|
} else {
|
|
|
+
|
|
|
outData.IsShare = false
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
qr.CheckPath = true
|
|
|
- qr.Page = "pages/canvas/canvas"
|
|
|
+ qr.Page = "pages/home/home"
|
|
|
qr.EnvVersion = "release"
|
|
|
- qr.Scene = "id=" + strconv.FormatInt(inData.MerchantId, 10) + "&code=" + inData.Code
|
|
|
+ qr.Scene = "id=" + strconv.FormatInt(inData.MerchantId, 10) + "-c=" + inData.Code
|
|
|
|
|
|
+ fmt.Println(qr.Scene)
|
|
|
data, err := json.Marshal(&qr)
|
|
|
if err != nil {
|
|
|
app.Error(c, 500, err, err.Error())
|