测试接口
This commit is contained in:
@@ -1667,7 +1667,7 @@ func checkPriceDefendOrderByPrice(db *dao.DaoDB, storeID, skuID, stock, jxPrice
|
|||||||
}
|
}
|
||||||
for _, v := range priceDefends {
|
for _, v := range priceDefends {
|
||||||
//如果刚好守的价和降的价一样,再判断库存够不够
|
//如果刚好守的价和降的价一样,再判断库存够不够
|
||||||
if v.DefendPrice <= int64(jxPrice) {
|
if v.DefendPrice > int64(jxPrice) {
|
||||||
if v.Count <= stock {
|
if v.Count <= stock {
|
||||||
stock -= v.Count
|
stock -= v.Count
|
||||||
v.IsSuccess = model.YES
|
v.IsSuccess = model.YES
|
||||||
|
|||||||
@@ -873,9 +873,7 @@ func generateOrder(ctx *jxcontext.Context, jxOrder *JxOrderInfo, addressID int64
|
|||||||
if err == nil {
|
if err == nil {
|
||||||
outJxOrder.TotalPrice = outJxOrder.OrderPrice + outJxOrder.FreightPrice
|
outJxOrder.TotalPrice = outJxOrder.OrderPrice + outJxOrder.FreightPrice
|
||||||
outJxOrder.ActualPayPrice = outJxOrder.TotalPrice
|
outJxOrder.ActualPayPrice = outJxOrder.TotalPrice
|
||||||
fmt.Println("testststststststst", utils.Format4Output(outJxOrder, false))
|
|
||||||
outJxOrder.Skus[0].DefendPrice = jxOrder.Skus[0].DefendPrice
|
outJxOrder.Skus[0].DefendPrice = jxOrder.Skus[0].DefendPrice
|
||||||
fmt.Println("tes111111111111111", utils.Format4Output(outJxOrder, false))
|
|
||||||
} else {
|
} else {
|
||||||
outJxOrder = nil
|
outJxOrder = nil
|
||||||
deliveryAddress = nil
|
deliveryAddress = nil
|
||||||
|
|||||||
Reference in New Issue
Block a user