add incomlist log
This commit is contained in:
parent
6e83930c9e
commit
f4dd7158e1
|
@ -499,6 +499,7 @@ func (v *Vas) calcAndUpdateIncome(ctx *gin.Context, tx *sqlx.Tx, streamerMid, ui
|
|||
logger.Error("zone.GetByMid fail, mid: %v, err: %v", streamerMid, err)
|
||||
return make([]IncomeInfo, 0), err
|
||||
}
|
||||
logger.Info("_IL orderId: %v, zone: %v", orderId, util.ToJson(zone))
|
||||
|
||||
// 获取代运营
|
||||
zid := zone.GetId()
|
||||
|
@ -507,6 +508,7 @@ func (v *Vas) calcAndUpdateIncome(ctx *gin.Context, tx *sqlx.Tx, streamerMid, ui
|
|||
logger.Error("zonetp.GetZoneThirdPartnerByZid fail, zid: %v, err: %v", zid, err)
|
||||
return make([]IncomeInfo, 0), err
|
||||
}
|
||||
logger.Info("_IL orderId: %v, zid: %v, tp: %v", orderId, zid, util.ToJson(tp))
|
||||
|
||||
// 获取协作者
|
||||
zclrList, err := v.zoneclr.OpList(ctx, &zone_collaborator_proto.OpListReq{
|
||||
|
@ -518,20 +520,24 @@ func (v *Vas) calcAndUpdateIncome(ctx *gin.Context, tx *sqlx.Tx, streamerMid, ui
|
|||
logger.Error("zoneclr.OpList fail, zid: %v, err: %v", zid, err)
|
||||
return make([]IncomeInfo, 0), err
|
||||
}
|
||||
logger.Info("_IL orderId: %v, zid: %v, zclrList: %v", orderId, zid, util.ToJson(zclrList))
|
||||
|
||||
var list = make([]IncomeInfo, 0)
|
||||
switch {
|
||||
case zone == nil:
|
||||
// 没有空间
|
||||
logger.Info("_IL (1) orderId: %v, zid: %v", orderId, zid)
|
||||
list = v._calcWithoutZone(streamerMid, totalDias, defaultIncomeSType)
|
||||
case zone != nil && tp == nil:
|
||||
// 有空间,没代运营
|
||||
logger.Info("_IL (2) orderId: %v, zid: %v", orderId, zid)
|
||||
list = v._calcWithZoneWithoutTp(streamerMid, totalDias, defaultIncomeSType)
|
||||
case zone != nil && tp != nil:
|
||||
// 有空间,有代运营
|
||||
logger.Info("_IL (3) orderId: %v, zid: %v", orderId, zid)
|
||||
list = v._calcWithZoneWithTp(streamerMid, totalDias, defaultIncomeSType, tp, zclrList)
|
||||
}
|
||||
logger.Info("incomeList: %v", util.ToJson(list))
|
||||
logger.Info("_IL incomeList: %v", util.ToJson(list))
|
||||
|
||||
// 写记录
|
||||
for _, ii := range list {
|
||||
|
|
Loading…
Reference in New Issue