Explorar el Código

add reverse:for v4.2.4 积分释放

tags/v4.2.4
huangjiajun hace 2 años
padre
commit
ecad8e5126
Se han modificado 2 ficheros con 3 adiciones y 2 borrados
  1. +1
    -1
      db/db_integral_release_interposition_user_flow.go
  2. +2
    -1
      svc/reward_commission.go

+ 1
- 1
db/db_integral_release_interposition_user_flow.go Ver fichero

@@ -49,7 +49,7 @@ func GetIntegralReleaseInterpositionUserFlowCount(Db *xorm.Engine) int {
}
func GetIntegralReleaseInterpositionUserFlowSum(sess *xorm.Session, uid int, coinId int, ordId string) float64 {
var IntegralReleaseInterpositionUserFlow model.IntegralReleaseInterpositionUserFlow
count, err := sess.Where("uid=? and coin_id=? and ord_id=? and kind=?", uid, coinId, ordId, 0).Sum(&IntegralReleaseInterpositionUserFlow, "amount")
count, err := sess.Where("uid=? and coin_id=? and ord_id=? and kind=?", uid, coinId, ordId, 2).Sum(&IntegralReleaseInterpositionUserFlow, "amount")
if err != nil {
return 0
}


+ 2
- 1
svc/reward_commission.go Ver fichero

@@ -76,7 +76,8 @@ func GetRewardCommission(engine *xorm.Engine, rmd *md.CommissionParam, isShare b
if zhios_order_relate_utils.InArr(cfg.Mode, []string{"lv_price", "lv_winery", "extend_price", "niubei_amount"}) && zhios_order_relate_utils.StrToFloat64(rmd.OldPrice) > 0 { //价格为基数
comf = zhios_order_relate_utils.StrToFloat64(rmd.OldPrice)
}
if cfg.Mode == "public_platoon" { //公排
if cfg.Mode == "public_platoon" {
//公排
//佣金扣除抽成后
fee, pvdFee, sysFee := CommFee(comf, cfg, "commission", rmd.IsGoods)
////积分扣除抽成后


Cargando…
Cancelar
Guardar