huangjiajun 7 mesi fa
parent
commit
ab4444a6f3
1 ha cambiato i file con 2 aggiunte e 3 eliminazioni
  1. +2
    -3
      app/svc/svc_deal_commission.go

+ 2
- 3
app/svc/svc_deal_commission.go Vedi File

@@ -127,8 +127,8 @@ func ConvertList2Map(a []*comm_plan.VirtualCoinCommission) (b map[string]float64
func CommCombineVirtualCoinRelateData(lvUser *comm_plan.LvUser, oid int64, pvd string, level int, mapData map[string]string) []*model.VirtualCoinRelate {
mode := mapData["mode"]

var data []*model.VirtualCoinRelate
if mapData["reward_type"] != "2" {
var data = make([]*model.VirtualCoinRelate, 0)
if mapData["reward_type"] != "2" && level == 0 {
//可能没有极差返利 只有补贴
profitList := lvUser.ProfitList
if len(profitList) == 0 {
@@ -186,7 +186,6 @@ func CommCombineVirtualCoinRelateData(lvUser *comm_plan.LvUser, oid int64, pvd s
}
}
}

if lvUser.ParentUser != nil {
level += 1
data = append(data, CommCombineVirtualCoinRelateData(lvUser.ParentUser, oid, pvd, level, mapData)...)


Caricamento…
Annulla
Salva