测试接口

This commit is contained in:
苏尹岚
2020-08-27 17:13:32 +08:00
parent d78a0f7b3f
commit 0425cb05b4
2 changed files with 1 additions and 3 deletions

View File

@@ -1667,7 +1667,7 @@ func checkPriceDefendOrderByPrice(db *dao.DaoDB, storeID, skuID, stock, jxPrice
}
for _, v := range priceDefends {
//如果刚好守的价和降的价一样,再判断库存够不够
if v.DefendPrice <= int64(jxPrice) {
if v.DefendPrice > int64(jxPrice) {
if v.Count <= stock {
stock -= v.Count
v.IsSuccess = model.YES

View File

@@ -873,9 +873,7 @@ func generateOrder(ctx *jxcontext.Context, jxOrder *JxOrderInfo, addressID int64
if err == nil {
outJxOrder.TotalPrice = outJxOrder.OrderPrice + outJxOrder.FreightPrice
outJxOrder.ActualPayPrice = outJxOrder.TotalPrice
fmt.Println("testststststststst", utils.Format4Output(outJxOrder, false))
outJxOrder.Skus[0].DefendPrice = jxOrder.Skus[0].DefendPrice
fmt.Println("tes111111111111111", utils.Format4Output(outJxOrder, false))
} else {
outJxOrder = nil
deliveryAddress = nil