浏览代码

update 积分释放

tags/v3.7.8
DengBiao 1年前
父节点
当前提交
95ab33a0bc
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. +3
    -3
      rule/integral_release_settlement.go

+ 3
- 3
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


正在加载...
取消
保存