From 970d1e4c2f9547f3e2ea463bd2d486e9f1e4e56a Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Fri, 23 Feb 2024 15:52:08 +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 --- svc/public_platoon_relate_commission.go | 12 ++++++------ svc/small_public_platoon_relate_commission.go | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/svc/public_platoon_relate_commission.go b/svc/public_platoon_relate_commission.go index 94dea20..16e6f6b 100644 --- a/svc/public_platoon_relate_commission.go +++ b/svc/public_platoon_relate_commission.go @@ -202,9 +202,9 @@ func BatchGetPublicPlatoonRelateCommissionByOrderLevel(engine *xorm.Engine, mast //直推獎勵 if zhios_order_relate_utils.StrToInt(recommendUid) > 0 { parentUid, _ := db.UserFindByID(engine, recommendUid) - lvGrade1 := subsidyTmp[zhios_order_relate_utils.IntToStr(parentUid.Level)] - if lvGrade1 != nil { - for _, coinId := range lvGrade1.ReturnType { + lvGrade := subsidyTmp[zhios_order_relate_utils.IntToStr(parentUid.Level)] + if lvGrade != nil { + for _, coinId := range lvGrade.ReturnType { var pendingAmount = param.PendingAmount if zhios_order_relate_utils.StrToInt(coinId) > 0 { //积分更换基数 pendingAmount = param.PendingIntegral @@ -216,9 +216,9 @@ func BatchGetPublicPlatoonRelateCommissionByOrderLevel(engine *xorm.Engine, mast //共富简历 if zhios_order_relate_utils.StrToInt(nowBenefitUid) > 0 { parentUid, _ := db.UserFindByID(engine, nowBenefitUid) - lvGrade1 := subsidyTmp[zhios_order_relate_utils.IntToStr(parentUid.Level)] - if lvGrade1 != nil { - for _, coinId := range lvGrade1.ReturnType { + lvGrade := subsidyTmp[zhios_order_relate_utils.IntToStr(parentUid.Level)] + if lvGrade != nil { + for _, coinId := range lvGrade.ReturnType { var pendingAmount = param.PendingAmount if zhios_order_relate_utils.StrToInt(coinId) > 0 { //积分更换基数 pendingAmount = param.PendingIntegral diff --git a/svc/small_public_platoon_relate_commission.go b/svc/small_public_platoon_relate_commission.go index 2e91c2e..1a33d46 100644 --- a/svc/small_public_platoon_relate_commission.go +++ b/svc/small_public_platoon_relate_commission.go @@ -415,9 +415,9 @@ func BatchSmallGetPublicPlatoonRelateCommissionLevel(engine *xorm.Engine, master //直推獎勵 if zhios_order_relate_utils.StrToInt(recommendUid) > 0 { parentUid, _ := db.UserFindByID(engine, recommendUid) - lvGrade1 := subsidyTmp[zhios_order_relate_utils.IntToStr(parentUid.Level)] - if lvGrade1 != nil { - for _, coinId := range lvGrade1.ReturnType { + lvGrade := subsidyTmp[zhios_order_relate_utils.IntToStr(parentUid.Level)] + if lvGrade != nil { + for _, coinId := range lvGrade.ReturnType { var pendingAmount = param.PendingAmount if zhios_order_relate_utils.StrToInt(coinId) > 0 { //积分更换基数 pendingAmount = param.PendingIntegral @@ -429,9 +429,9 @@ func BatchSmallGetPublicPlatoonRelateCommissionLevel(engine *xorm.Engine, master //共富简历 if zhios_order_relate_utils.StrToInt(nowBenefitUid) > 0 { parentUid, _ := db.UserFindByID(engine, nowBenefitUid) - lvGrade1 := subsidyTmp[zhios_order_relate_utils.IntToStr(parentUid.Level)] - if lvGrade1 != nil { - for _, coinId := range lvGrade1.ReturnType { + lvGrade := subsidyTmp[zhios_order_relate_utils.IntToStr(parentUid.Level)] + if lvGrade != nil { + for _, coinId := range lvGrade.ReturnType { var pendingAmount = param.PendingAmount if zhios_order_relate_utils.StrToInt(coinId) > 0 { //积分更换基数 pendingAmount = param.PendingIntegral