This commit is contained in:
richboo111
2023-01-31 18:15:02 +08:00
parent 3ec66406c5
commit 5fadd0f549
2 changed files with 6 additions and 4 deletions

View File

@@ -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)
}

View File

@@ -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