diff --git a/business/jxstore/act/act.go b/business/jxstore/act/act.go index 349890b60..bb0b24dcd 100644 --- a/business/jxstore/act/act.go +++ b/business/jxstore/act/act.go @@ -2,6 +2,7 @@ package act import ( "fmt" + "math" "time" "git.rosy.net.cn/baseapi/utils" @@ -142,6 +143,9 @@ func ActStoreSkuParam2Model(ctx *jxcontext.Context, db *dao.DaoDB, act *model.Ac percentage = v.PricePercentage } actSkuMap.ActualActPrice = int64(jxutils.CaculateSkuVendorPrice(int(actSkuMap.VendorPrice), percentage, 0)) + if actSkuMap.ActualActPrice > 10 { + actSkuMap.ActualActPrice = int64(math.Round(float64(actSkuMap.ActualActPrice)/10) * 10) + } } if actSkuMap.ActualActPrice <= 0 { actSkuMap.ActualActPrice = 1