作者 唐旭辉

bug 修复

@@ -477,7 +477,7 @@ func UserDelete(userCompanyids []int64, companyid int64) error { @@ -477,7 +477,7 @@ func UserDelete(userCompanyids []int64, companyid int64) error {
477 ids []int64 477 ids []int64
478 ) 478 )
479 for _, v := range updateIds { 479 for _, v := range updateIds {
480 - if v.Id == companyInfo.AdminId { 480 + if v.UserId == companyInfo.AdminId {
481 return protocol.NewErrWithMessage("10071") 481 return protocol.NewErrWithMessage("10071")
482 } 482 }
483 ids = append(ids, v.Id) 483 ids = append(ids, v.Id)