From dfd3d36ba532e4a75b92ea4579a9bb6c9e60a48d Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Thu, 6 Jul 2023 15:10:00 +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/reward_commission.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/svc/reward_commission.go b/svc/reward_commission.go index e1a86e4..7fa1e59 100644 --- a/svc/reward_commission.go +++ b/svc/reward_commission.go @@ -46,6 +46,11 @@ func GetRewardCommission(engine *xorm.Engine, rmd *md.CommissionParam, isShare b minLevelList, _ := db.UserLevelInIDescByWeightLowWithOne(engine) if minLevelList != nil { minLevel = minLevelList.Id + if uid == 0 { + level = minLevel + newLevel = minLevel + userLevel = minLevel + } } // 获取抽成方案 newProvider := provider