This commit is contained in:
richboo111
2023-02-21 16:26:51 +08:00
parent 9f022a8784
commit 555abd8bd2
4 changed files with 35 additions and 18 deletions

View File

@@ -1,6 +1,7 @@
package jdshopapi
import (
"fmt"
"testing"
"git.rosy.net.cn/baseapi/utils"
@@ -14,6 +15,18 @@ func TestEnGet(t *testing.T) {
// t.Log(utils.Format4Output(result, false))
}
//根据订单ID查询订单
func TestGetOrderById(t *testing.T) {
//Str, err := json.Number("26138025293300000001").Int64()
//id := utils.Str2Int64(Str)
//261386944586
//261380252933
detail, err := api.GetOrderById(261380252933, false)
fmt.Println(utils.Format4Output(detail, false))
fmt.Println(err)
}
func TestGetDeliveryCompany(t *testing.T) {
result, err := api.GetDeliveryCompany()
if err != nil {