This commit is contained in:
richboo111
2023-08-11 14:18:26 +08:00
parent a2442b3a93
commit ae3aa6253e
2 changed files with 23 additions and 2 deletions

View File

@@ -7,7 +7,8 @@ import (
"testing"
)
var api = New(AppID, AppKey)
//var api = New(AppID, AppKey)//测试
var api = New(AppID2, AppKey2) //正式
const (
//正式环境
@@ -98,7 +99,7 @@ func TestCreateOrder(t *testing.T) {
//预取消订单
func TestPreCancelOrder(t *testing.T) {
resp, err := api.PreCancelOrder("JS4157236257228")
resp, err := api.PreCancelOrder("JS8556325634982")
fmt.Println(resp)
fmt.Println(err)
}