测试接口
This commit is contained in:
@@ -243,9 +243,7 @@ func CreateOrder(ctx *jxcontext.Context, jxOrder *JxOrderInfo, addressID int64,
|
||||
outJxOrder.OrderID = utils.Str2Int64(vendorOrderID)
|
||||
return outJxOrder, err
|
||||
}
|
||||
if outJxOrder.TotalPrice != jxOrder.TotalPrice {
|
||||
fmt.Println("te222222222222222222222222222222222222222222222222222222222222", utils.Format4Output(outJxOrder, false))
|
||||
fmt.Println("te", utils.Format4Output(jxOrder, false))
|
||||
if outJxOrder.TotalPrice != jxOrder.TotalPrice && jxOrder.IsPriceDefend != model.YES {
|
||||
return nil, fmt.Errorf("商品或配送信息发生改变,请重新下单")
|
||||
}
|
||||
if jxOrder.IsPriceDefend == model.YES {
|
||||
@@ -254,7 +252,6 @@ func CreateOrder(ctx *jxcontext.Context, jxOrder *JxOrderInfo, addressID int64,
|
||||
outJxOrder.OrderID = GenOrderNo(ctx)
|
||||
}
|
||||
order, err2 := jxOrder2GoodsOrder(ctx, outJxOrder, deliveryAddress, "", IsDeliverySelf)
|
||||
fmt.Println("te333333333333333333333333333333333333333333333333333333333333333333", err2)
|
||||
if err = err2; err == nil {
|
||||
order.AddressID = addressID
|
||||
if jxOrder.IsPriceDefend == model.YES {
|
||||
|
||||
Reference in New Issue
Block a user