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