Pārlūkot izejas kodu

更新

one_orenge
huangjiajun pirms 7 mēnešiem
vecāks
revīzija
ab4444a6f3
1 mainītis faili ar 2 papildinājumiem un 3 dzēšanām
  1. +2
    -3
      app/svc/svc_deal_commission.go

+ 2
- 3
app/svc/svc_deal_commission.go Parādīt failu

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


Notiek ielāde…
Atcelt
Saglabāt