Commit 8b7ace62 authored by chenweijian's avatar chenweijian

家族

parent c96b0099
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment