From a21df89743fd98eb508ba94416ee97961b054e16 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Mon, 5 Feb 2024 16:21:59 +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/public_platoon_double_network_relate_commission.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/rule/public_platoon_double_network_relate_commission.go b/rule/public_platoon_double_network_relate_commission.go index 88af1f2..4a0243c 100644 --- a/rule/public_platoon_double_network_relate_commission.go +++ b/rule/public_platoon_double_network_relate_commission.go @@ -27,6 +27,9 @@ func AddPublicPlatoonDoubleNetworkRelateCommission(engine *xorm.Engine, AddPubli if err != nil { return nil, err } + if userPublicPlatoonDoubleNetworkSetting == nil { + return nil, nil + } for _, param := range AddPublicPlatoonDoubleNetworkRelateCommissionReqList { //TODO::判断是否有uid为-1 (代表等待新用户填充) 的记录 userPublicPlatoonDoubleNetworkRelation, err2 := db.UserPublicPlatoonDoubleNetworkRelationGetOneByParams(engine, map[string]interface{}{ @@ -360,7 +363,9 @@ func EstimateUserPosition(engine *xorm.Engine, uid int) (total, level, levelRank if err != nil { return } - + if userPublicPlatoonDoubleNetworkSetting == nil { + return + } //2、查询排名 rank, total, userAmount, err := CalcUserRank(engine, zhios_order_relate_utils.IntToStr(uid)) if err != nil {