解密完成

This commit is contained in:
苏尹岚
2020-07-28 17:34:28 +08:00
parent 885a609eec
commit 8e87def619
3 changed files with 21 additions and 66 deletions

View File

@@ -1,7 +1,6 @@
package jdshopapi
import (
"fmt"
"io/ioutil"
"net/http"
@@ -12,7 +11,7 @@ type CallBackResult struct {
GetOrderResult
}
func (a *API) GetCallbackMsg(request *http.Request) (call *CallBackResult, err error) {
func (a *API) GetCallbackMsg(request *http.Request) (call *GetOrderResult, err error) {
data, err := ioutil.ReadAll(request.Body)
if err != nil {
return nil, err
@@ -22,7 +21,6 @@ func (a *API) GetCallbackMsg(request *http.Request) (call *CallBackResult, err e
return nil, err
}
mapData := utils.URLValues2Map(values)
fmt.Println(mapData)
utils.Map2StructByJson(mapData, &call, false)
return call, err
}