Ver a proveniência

update 积分释放

tags/v3.7.8
DengBiao há 1 ano
ascendente
cometimento
95ab33a0bc
1 ficheiros alterados com 3 adições e 3 eliminações
  1. +3
    -3
      rule/integral_release_settlement.go

+ 3
- 3
rule/integral_release_settlement.go Ver ficheiro

@@ -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


Carregando…
Cancelar
Guardar