weixin log
This commit is contained in:
parent
784b361ec8
commit
7cb9d277e5
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue