Kaynağa Gözat

add reverse:for v1.1.3 分佣方案优化

tags/v1.1.3
huangjiajun 2 yıl önce
ebeveyn
işleme
a981a2d941
1 değiştirilmiş dosya ile 9 ekleme ve 1 silme
  1. +9
    -1
      lib/comm_plan/all.go

+ 9
- 1
lib/comm_plan/all.go Dosyayı Görüntüle

@@ -247,7 +247,15 @@ func sameMoneyV2(lv, isOnlySubsidy int, totalAmtList, restAmtList, profitList, p
newTotalRatioList := make([]*VirtualCoinCommission, 0) newTotalRatioList := make([]*VirtualCoinCommission, 0)
newPeerRateList := make([]*VirtualCoinCommission, 0) newPeerRateList := make([]*VirtualCoinCommission, 0)
newSubsidyFeeList := subsidyFeeList newSubsidyFeeList := subsidyFeeList

if opt == nil {
return newProfitList, newRestAmtList, newTotalRatioList, newPeerRateList, newSubsidyFeeList, zeroList
}
if opt.UserRate == nil {
return newProfitList, newRestAmtList, newTotalRatioList, newPeerRateList, newSubsidyFeeList, zeroList
}
if opt.UserRate[lv] == nil {
return newProfitList, newRestAmtList, newTotalRatioList, newPeerRateList, newSubsidyFeeList, zeroList
}
//极差返利 //极差返利
if opt.UserRate[lv].PayMode == 0 && isOnlySubsidy == 0 { if opt.UserRate[lv].PayMode == 0 && isOnlySubsidy == 0 {
for _, coin := range profitList { for _, coin := range profitList {


Yükleniyor…
İptal
Kaydet