weixin log

This commit is contained in:
jiangyong27 2024-10-21 18:05:01 +08:00
parent 784b361ec8
commit 7cb9d277e5
1 changed files with 4 additions and 1 deletions

View File

@ -39,7 +39,10 @@ func (o *OaSdk) GetQrCode(sceneStr string) (string, error) {
}
url := fmt.Sprintf("?access_token=%s", oaQrCodeCreateUrl, accessToken)
res, _ := http.Post(url, "application/json", bytes.NewBuffer(marshal))
res, err := http.Post(url, "application/json", bytes.NewBuffer(marshal))
if err != nil {
return "", err
}
defer res.Body.Close()
body, err := io.ReadAll(res.Body)
if err != nil {