This commit is contained in:
苏尹岚
2020-11-10 08:46:41 +08:00
parent f836b738f0
commit 90b6fcf597

View File

@@ -622,9 +622,9 @@ func SendJdDelivery(ctx *jxcontext.Context, dOrder *model.DeliveryOrder) (errCod
}
if dOrder.PayPrice == 0 {
if dOrder.Weight <= 3 {
dOrder.PayPrice = 500
dOrder.PayPrice = 1000
} else {
dOrder.PayPrice = 500 + int(float64(200)*math.Ceil(dOrder.Weight-3))
dOrder.PayPrice = 1000 + int(float64(200)*math.Ceil(dOrder.Weight-3))
}
}
sendDeliveryList, _, err := dao.QueryUserDeliveryAddress(db, int64(dOrder.DeliverySendID), nil, 0, 0, 0)