This commit is contained in:
jiangyong 2025-07-09 21:13:44 +08:00
parent 721d83ea00
commit 278728c564
1 changed files with 3 additions and 0 deletions

View File

@ -5,6 +5,8 @@ import (
"encoding/json"
"errors"
"fmt"
log "github.com/sirupsen/logrus"
"github.com/smbrave/goutil"
"github.com/spf13/cast"
"github.com/tidwall/gjson"
"io"
@ -132,6 +134,7 @@ func (o *MpSdk) GetScheme(params map[string]interface{}) (string, error) {
if err != nil {
return "", err
}
log.Errorf("req scheme :%s [%s]", goutil.EncodeJSON(newParams), cast.ToString(newParams["query"]))
url := fmt.Sprintf("%s?access_token=%s", getWxScheme, accessToken)
res, _ := http.Post(url, "application/json", bytes.NewBuffer(marshal))
body, err := io.ReadAll(res.Body)