From 4108419509a305389fef34c359d3ed4454a8098d Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Tue, 28 Mar 2023 09:40:19 +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 --- rule/regional_sub_agent.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rule/regional_sub_agent.go b/rule/regional_sub_agent.go index 19c8ac3..5b83324 100644 --- a/rule/regional_sub_agent.go +++ b/rule/regional_sub_agent.go @@ -214,7 +214,7 @@ func makeSubSystemData(engine *xorm.Engine, args *md.RegionalAgentSystemArgs, re parentUser, _ := db.UserProfileFindByID(engine, args.Uid) parentUid := 0 if parentUser != nil { - parentUid = parentUser.Uid + parentUid = parentUser.ParentUid } parents, amount, divideAmount, err = SubCommAmount(parentUid, zhios_order_relate_utils.AnyToFloat64(commissionRate), amount, agentUser, coinSetDetail, virtualCoin, parents, false) if err != nil {