This commit is contained in:
苏尹岚
2021-04-21 09:25:35 +08:00
parent 077ff77417
commit be93f2d9c8
2 changed files with 12 additions and 7 deletions

View File

@@ -1,6 +1,7 @@
package mtunionapi
import (
"encoding/json"
"fmt"
"git.rosy.net.cn/baseapi/utils"
"io/ioutil"
@@ -40,7 +41,9 @@ func (a *API) GetCallbackMsg(request *http.Request) (call *CallBackResult, err e
}
mapData := utils.URLValues2Map(values)
fmt.Println("1111111111111111111", mapData)
utils.Map2StructByJson(mapData, &call, false)
for k, _ := range mapData {
json.Unmarshal([]byte(k), &call)
}
fmt.Println("2222222222222222222", utils.Format4Output(call, true))
return call, err
}