diff --git a/rule/integral_release_settlement.go b/rule/integral_release_settlement.go index f248534..1dc5a68 100644 --- a/rule/integral_release_settlement.go +++ b/rule/integral_release_settlement.go @@ -83,7 +83,7 @@ func DailySettlementIntegralRelease(engine *xorm.Engine, mid string, isTask bool }) for _, ord := range *integralReleaseUserWithOrds { //计算释放系数 - err, releaseSpeed := calcReleaseRate(integralRelease, zhios_order_relate_utils.StrToFloat64(ord.OrdDiscountRatio)) + err, releaseSpeed := CalcReleaseRate(integralRelease, zhios_order_relate_utils.StrToFloat64(ord.OrdDiscountRatio)) if err != nil { _ = session.Rollback() return err @@ -116,8 +116,8 @@ func DailySettlementIntegralRelease(engine *xorm.Engine, mid string, isTask bool return nil } -// calcReleaseRate 计算释放系数 -func calcReleaseRate(integralReleaseBasic *model.IntegralReleaseBasic, ordDiscountRatio float64) (err error, releaseSpeed string) { +// CalcReleaseRate 计算释放系数 +func CalcReleaseRate(integralReleaseBasic *model.IntegralReleaseBasic, ordDiscountRatio float64) (err error, releaseSpeed string) { var businessDiscountSet []*md.BusinessDiscountSet if err := json.Unmarshal([]byte(integralReleaseBasic.BusinessDiscountSet), &businessDiscountSet); err != nil { return zhios_order_relate_logx.Warn("解析【商家让利释放速度设置】出错"), releaseSpeed