|
@@ -63,15 +63,24 @@ func (officialAccount *OfficialAccount) QrcodeCreate(sceneStr string) (qrcodeUrl |
|
|
// }, |
|
|
// }, |
|
|
// }, |
|
|
// }, |
|
|
//}, nil) |
|
|
//}, 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{}{ |
|
|
"action_info": map[string]interface{}{ |
|
|
"scene": map[string]string{ |
|
|
"scene": map[string]string{ |
|
|
"scene_str": sceneStr, |
|
|
"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) |
|
|
post, err := utils.CurlPost(url, requestBody, nil) |
|
|
|
|
|
|
|
|
utils.FilePutContents("wx_official_account_qrcode_create", "resp"+string(post)) |
|
|
utils.FilePutContents("wx_official_account_qrcode_create", "resp"+string(post)) |
|
|