|
|
@@ -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)...) |
|
|
|