From 1df5e4457741ccd5e1d9908a55f8bfbfde5ec132 Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Mon, 9 Oct 2023 11:29:12 +0800 Subject: [PATCH] update --- app/lib/wx/wx_official_account.go | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/app/lib/wx/wx_official_account.go b/app/lib/wx/wx_official_account.go index aae3777..adaa163 100644 --- a/app/lib/wx/wx_official_account.go +++ b/app/lib/wx/wx_official_account.go @@ -63,15 +63,24 @@ func (officialAccount *OfficialAccount) QrcodeCreate(sceneStr string) (qrcodeUrl // }, // }, //}, nil) - requestBody, _ := json.Marshal(map[string]interface{}{ - "action_name": "QR_STR_SCENE", - "expire_seconds": "2592000", //30天过期 + + requestBody, _ := json.Marshal(map[string]interface{}{ //TODO::永久二维码 + "action_name": "QR_LIMIT_STR_SCENE", "action_info": map[string]interface{}{ "scene": map[string]string{ "scene_str": sceneStr, }, }, }) + //requestBody, _ := json.Marshal(map[string]interface{}{ + // "action_name": "QR_STR_SCENE", + // "expire_seconds": "2592000", //30天过期 + // "action_info": map[string]interface{}{ + // "scene": map[string]string{ + // "scene_str": sceneStr, + // }, + // }, + //}) post, err := utils.CurlPost(url, requestBody, nil) utils.FilePutContents("wx_official_account_qrcode_create", "resp"+string(post))