From 61a311caea7479e72a4489bebb9b92f8e6e67bc4 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Wed, 3 Jul 2024 13:52:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/svc/svc_comm_deal_commission.go | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/app/svc/svc_comm_deal_commission.go b/app/svc/svc_comm_deal_commission.go index c2e03ab..7231d04 100644 --- a/app/svc/svc_comm_deal_commission.go +++ b/app/svc/svc_comm_deal_commission.go @@ -140,8 +140,9 @@ func CommSettleDone(eg *xorm.Engine, pvd string, oid int64, masterId string, map if set != nil { appName = set.Val } + pvdOid := oid if mapData["pvd_oid"] != "" { - oid = utils.StrToInt64(mapData["pvd_oid"]) + pvdOid = utils.StrToInt64(mapData["pvd_oid"]) } for _, item := range ol { if mapData["reward_type"] == "2" && item.Level == 0 { @@ -152,7 +153,7 @@ func CommSettleDone(eg *xorm.Engine, pvd string, oid int64, masterId string, map //公排 if utils.InArr(item.Mode, []string{"lv_commission_public_platoon", "lv_price_public_platoon"}) && item.ExtendType == 5 { fmt.Println("======================555") - bools := PublicPlatoonSettle(session, "共富奖励", mapData["title"], utils.Int64ToStr(oid), item.Uid, 0, item.Amount) + bools := PublicPlatoonSettle(session, "共富奖励", mapData["title"], utils.Int64ToStr(pvdOid), item.Uid, 0, item.Amount) fmt.Println("======================666", bools) if bools == false { _ = session.Rollback() @@ -160,11 +161,12 @@ func CommSettleDone(eg *xorm.Engine, pvd string, oid int64, masterId string, map } continue } + item.Oid = pvdOid _ = CommCommSettleMoney(session, item, appName, masterId, mapData) } if utils.StrToFloat64(item.AdditionalSubsidy) > 0 { if item.Mode == "public_platoon" { //公排 - bools := PublicPlatoonSettle(session, "共富奖励", mapData["title"], utils.Int64ToStr(oid), item.Uid, 0, utils.StrToFloat64(item.AdditionalSubsidy)) + bools := PublicPlatoonSettle(session, "共富奖励", mapData["title"], utils.Int64ToStr(pvdOid), item.Uid, 0, utils.StrToFloat64(item.AdditionalSubsidy)) if bools == false { _ = session.Rollback() return false @@ -180,7 +182,7 @@ func CommSettleDone(eg *xorm.Engine, pvd string, oid int64, masterId string, map if utils.StrToFloat64(item.Amount) > 0 { if utils.InArr(item.Mode, []string{"lv_commission_public_platoon", "lv_price_public_platoon"}) && item.ExtendType == 5 { fmt.Println("======================555") - bools := PublicPlatoonSettle(session, "共富奖励", mapData["title"], utils.Int64ToStr(oid), item.Uid, item.CoinId, utils.StrToFloat64(item.Amount)) + bools := PublicPlatoonSettle(session, "共富奖励", mapData["title"], utils.Int64ToStr(pvdOid), item.Uid, item.CoinId, utils.StrToFloat64(item.Amount)) fmt.Println("======================666", bools) if bools == false { _ = session.Rollback() @@ -188,11 +190,12 @@ func CommSettleDone(eg *xorm.Engine, pvd string, oid int64, masterId string, map } continue } + item.Oid = pvdOid _ = CommSettleVirtualCoin(session, item, mapData) } //公排 if item.Mode == "public_platoon" && utils.StrToFloat64(item.AdditionalSubsidy) > 0 { - bools := PublicPlatoonSettle(session, "共富奖励", mapData["title"], utils.Int64ToStr(oid), item.Uid, item.CoinId, utils.StrToFloat64(item.AdditionalSubsidy)) + bools := PublicPlatoonSettle(session, "共富奖励", mapData["title"], utils.Int64ToStr(pvdOid), item.Uid, item.CoinId, utils.StrToFloat64(item.AdditionalSubsidy)) if bools == false { _ = session.Rollback() return false