From cb0aacde54cf8e2986fefa21a5c9b51c59c36b79 Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Fri, 23 Feb 2024 17:14:43 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E4=B8=80=E4=B8=AA=E5=9C=88=E5=9C=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../one_circles/one_circles_public_platoon_give_activty_coin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rule/one_circles/one_circles_public_platoon_give_activty_coin.go b/rule/one_circles/one_circles_public_platoon_give_activty_coin.go index be9c6ac..ce40f85 100644 --- a/rule/one_circles/one_circles_public_platoon_give_activty_coin.go +++ b/rule/one_circles/one_circles_public_platoon_give_activty_coin.go @@ -101,7 +101,7 @@ func SettlementPublicGiveActivityCoin(engine *xorm.Engine, masterId string, uid return err2 } - if userCount >= zhios_order_relate_utils.StrToInt64(fatherReward.RewardCondition) { + if fatherReward != nil && userCount >= zhios_order_relate_utils.StrToInt64(fatherReward.RewardCondition) { fatherRewardValue := rewardValue * (zhios_order_relate_utils.StrToFloat64(fatherReward.RewardValue) / 100) rewardFather = append(rewardFather, struct { Uid int `json:"uid"` //用户id