1
This commit is contained in:
@@ -64,9 +64,9 @@ func TestGetWaybillPrice(t *testing.T) {
|
|||||||
//发布订单
|
//发布订单
|
||||||
func TestAddOrder(t *testing.T) {
|
func TestAddOrder(t *testing.T) {
|
||||||
param := &AddOrderReq{
|
param := &AddOrderReq{
|
||||||
PriceToken: "7cef537722d647afa2274563cc886812",
|
PriceToken: "0215e844d582477191dfc5f6cd7dcb31",
|
||||||
OrderPrice: "10.00",
|
OrderPrice: "9.50",
|
||||||
BalancePayMoney: "10.00",
|
BalancePayMoney: "8.07",
|
||||||
Receiver: "测试订单",
|
Receiver: "测试订单",
|
||||||
ReceiverPhone: "15680424816,9776",
|
ReceiverPhone: "15680424816,9776",
|
||||||
CallbackUrl: uuCallbackURL,
|
CallbackUrl: uuCallbackURL,
|
||||||
@@ -90,7 +90,7 @@ func TestGetOrderDetail(t *testing.T) {
|
|||||||
|
|
||||||
//取消订单
|
//取消订单
|
||||||
func TestCancelOrder(t *testing.T) {
|
func TestCancelOrder(t *testing.T) {
|
||||||
err := api.CancelOrder("230131173810047000010681", "测试取消")
|
err := api.CancelOrder("23013118111004700001004861", "测试取消")
|
||||||
fmt.Println(err)
|
fmt.Println(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"git.rosy.net.cn/baseapi/platformapi"
|
"git.rosy.net.cn/baseapi/platformapi"
|
||||||
"git.rosy.net.cn/baseapi/utils"
|
"git.rosy.net.cn/baseapi/utils"
|
||||||
|
"git.rosy.net.cn/jx-callback/globals"
|
||||||
"math/rand"
|
"math/rand"
|
||||||
"net/http"
|
"net/http"
|
||||||
"sort"
|
"sort"
|
||||||
@@ -76,6 +77,7 @@ func (a *API) AccessAPI(baseUrl, actionApi, method string, bizParams map[string]
|
|||||||
//}
|
//}
|
||||||
//完整请求url
|
//完整请求url
|
||||||
fullPath := utils.GenerateGetURL(baseUrl, actionApi, nil)
|
fullPath := utils.GenerateGetURL(baseUrl, actionApi, nil)
|
||||||
|
globals.SugarLogger.Debugf("uupt fullPath======%s", fullPath)
|
||||||
//发送请求
|
//发送请求
|
||||||
sendUrl := func() *http.Request {
|
sendUrl := func() *http.Request {
|
||||||
var request *http.Request
|
var request *http.Request
|
||||||
|
|||||||
Reference in New Issue
Block a user