From 8b7ace62e61750033fc76483c8699e7f12ae7b4d Mon Sep 17 00:00:00 2001 From: chenweijian <820961417@qq.com> Date: Wed, 15 Mar 2023 15:36:21 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=B6=E6=97=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- route/group_power_r/group_power.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/route/group_power_r/group_power.go b/route/group_power_r/group_power.go index 47d961c..027378e 100644 --- a/route/group_power_r/group_power.go +++ b/route/group_power_r/group_power.go @@ -871,8 +871,9 @@ func GroupPowerMembers(c *gin.Context) (*mycontext.MyContext, error) { gpU := &groupPower_m.GroupPowerUser{GroupPowerId: familyId} if userCode != "" { u, err := user_m.GetUserByCode(model, userCode) - if err != nil { - return myContext, err + if err != nil || u == nil || u.ID <= 0 { + resp.ResponsePageBaseOk(c, nil, 0, false) + return myContext, nil } if u != nil && u.ID > 0 { gpU.UserId = u.ID -- 2.22.0