Commit 8b7ace62 authored by chenweijian's avatar chenweijian

家族

parent c96b0099
...@@ -871,8 +871,9 @@ func GroupPowerMembers(c *gin.Context) (*mycontext.MyContext, error) { ...@@ -871,8 +871,9 @@ func GroupPowerMembers(c *gin.Context) (*mycontext.MyContext, error) {
gpU := &groupPower_m.GroupPowerUser{GroupPowerId: familyId} gpU := &groupPower_m.GroupPowerUser{GroupPowerId: familyId}
if userCode != "" { if userCode != "" {
u, err := user_m.GetUserByCode(model, userCode) u, err := user_m.GetUserByCode(model, userCode)
if err != nil { if err != nil || u == nil || u.ID <= 0 {
return myContext, err resp.ResponsePageBaseOk(c, nil, 0, false)
return myContext, nil
} }
if u != nil && u.ID > 0 { if u != nil && u.ID > 0 {
gpU.UserId = u.ID 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