Selaa lähdekoodia

add reverse:for v4.2.4 积分释放

tags/v4.2.4
huangjiajun 2 vuotta sitten
vanhempi
commit
ecad8e5126
2 muutettua tiedostoa jossa 3 lisäystä ja 2 poistoa
  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 Näytä tiedosto

@@ -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 Näytä tiedosto

@@ -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)
////积分扣除抽成后


Ladataan…
Peruuta
Tallenna