This commit is contained in:
richboo111
2023-02-23 17:17:08 +08:00
parent 169a9c4ffd
commit bc3a640361
3 changed files with 36 additions and 3 deletions

View File

@@ -83,8 +83,13 @@ func TestAddOrder(t *testing.T) {
//获取订单详情
func TestGetOrderDetail(t *testing.T) {
detail, err := api.GetOrderDetail("23022111551032700006604805")
detail, err := api.GetOrderDetail("23022310041019000003804258")
fmt.Println(utils.Format4Output(detail, false))
orderPrice := utils.Str2Float64(detail.OrderPrice)
priceOff := utils.Str2Float64(detail.PriceOff)
price := orderPrice - priceOff
temp := int64(price * 100)
fmt.Println(temp)
fmt.Println(err)
}