aa
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user