From b805f9c4770e77f48db7e1101e3a89e21378d1ab Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Mon, 25 Sep 2023 20:39:35 +0800 Subject: [PATCH] 1 --- rule/public_platoon_relate_commission.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rule/public_platoon_relate_commission.go b/rule/public_platoon_relate_commission.go index be6f00f..d6cf847 100644 --- a/rule/public_platoon_relate_commission.go +++ b/rule/public_platoon_relate_commission.go @@ -479,7 +479,7 @@ func JudgeUserBelowLevel(engine *xorm.Engine, uid int) (level int, err error) { level = son.Level - m.Level var list []model.UserPublicPlatoonRelation - if err = engine.Where("father_uid", son.FatherUid). + if err = engine.Where("father_uid =?", son.FatherUid). Find(&list); err != nil { return }