diff --git a/route/group_power_r/group_power.go b/route/group_power_r/group_power.go index 47d961c7aaebc6620eb4e6eb8e4bf2a21c0cbcdf..027378e7dd66e93615a30d8cb99a5ebcda878edf 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