测试接口

This commit is contained in:
苏尹岚
2020-08-27 16:54:34 +08:00
parent a87d85bde6
commit a08b8992bc

View File

@@ -262,7 +262,6 @@ func CreateOrder(ctx *jxcontext.Context, jxOrder *JxOrderInfo, addressID int64,
callNewOrder(order)
}
}
fmt.Println("testststststststst", utils.Format4Output(outJxOrder, false))
return outJxOrder, err
}
@@ -870,11 +869,13 @@ func generateOrder(ctx *jxcontext.Context, jxOrder *JxOrderInfo, addressID int64
if IsDeliverySelf {
outJxOrder.FreightPrice = 0
}
outJxOrder.Skus[0].DefendPrice = jxOrder.Skus[0].DefendPrice
}
if err == nil {
outJxOrder.TotalPrice = outJxOrder.OrderPrice + outJxOrder.FreightPrice
outJxOrder.ActualPayPrice = outJxOrder.TotalPrice
fmt.Println("testststststststst", utils.Format4Output(outJxOrder, false))
fmt.Println("tes111111111111111", utils.Format4Output(jxOrder, false))
outJxOrder.Skus[0].DefendPrice = jxOrder.Skus[0].DefendPrice
} else {
outJxOrder = nil
deliveryAddress = nil