瀏覽代碼

更新

one_orenge
huangjiajun 7 月之前
父節點
當前提交
ab4444a6f3
共有 1 個檔案被更改,包括 2 行新增3 行删除
  1. +2
    -3
      app/svc/svc_deal_commission.go

+ 2
- 3
app/svc/svc_deal_commission.go 查看文件

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


Loading…
取消
儲存