This commit is contained in:
suyl
2021-05-07 14:11:53 +08:00
parent d5fbf9da7a
commit 1fcf1dbc40

View File

@@ -2,10 +2,10 @@ package mtunionapi
import (
"encoding/json"
"fmt"
"git.rosy.net.cn/baseapi/utils"
"io/ioutil"
"net/http"
"strings"
)
type CallBack struct {
@@ -40,8 +40,8 @@ func (a *API) GetCallbackMsg(request *http.Request) (call *CallBackResult, err e
return nil, err
}
mapData := utils.URLValues2Map(values)
fmt.Println("mapData", mapData)
for k, _ := range mapData {
k = strings.ReplaceAll(k, "&", "")
json.Unmarshal([]byte(k), &call)
}
return call, err