diff --git a/business/jxstore/act/act.go b/business/jxstore/act/act.go index 0631a04e4..542a4c190 100644 --- a/business/jxstore/act/act.go +++ b/business/jxstore/act/act.go @@ -954,18 +954,18 @@ func ForceUpdateVendorPrice(ctx *jxcontext.Context, vendorID int, actType int, s if err = dao.GetEntity(db, storeSkuBind, model.FieldStoreID, model.FieldSkuID, model.FieldDeletedAt); err == nil { vendorPrice := int(v.VendorPrice) if vendorPrice != 0 { - if err2 := checkDiscountValidation(actType, float64(v.ActualActPrice)*100/float64(v.VendorPrice)); err2 != nil { + if err2 := checkDiscountValidation(actType, float64(v.ActPrice)*100/float64(v.VendorPrice)); err2 != nil { v.ErrMsg = err2.Error() wrongSkuList = append(wrongSkuList, v) storeSkuBind = nil } } else { vendorPrice = dao.GetStoreSkuBindVendorPrice(storeSkuBind, vendorID) - if checkDiscountValidation(actType, float64(v.ActualActPrice)*100/float64(vendorPrice)) != nil { + if checkDiscountValidation(actType, float64(v.ActPrice)*100/float64(vendorPrice)) != nil { if actType == model.ActSkuSecKill { - vendorPrice = int(v.ActualActPrice)*100/maxDiscount4SkuSecKill + 10 + vendorPrice = int(v.ActPrice)*100/maxDiscount4SkuSecKill + 10 } else if actType == model.ActSkuDirectDown { - vendorPrice = int(v.ActualActPrice) + 10 + vendorPrice = int(v.ActPrice) + 10 } } else { storeSkuBind = nil