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