京东订单测试

This commit is contained in:
苏尹岚
2020-07-23 11:56:22 +08:00
parent e37d705e1d
commit 885a609eec
3 changed files with 25 additions and 9 deletions

View File

@@ -1,6 +1,7 @@
package jdshopapi
import (
"fmt"
"io/ioutil"
"net/http"
@@ -21,6 +22,7 @@ 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
}