diff --git a/model/gmodel/fs_user_logic.go b/model/gmodel/fs_user_logic.go index 7077dcad..d4688454 100644 --- a/model/gmodel/fs_user_logic.go +++ b/model/gmodel/fs_user_logic.go @@ -31,7 +31,7 @@ type UserBasicInfoForSave struct { } func (u *FsUserModel) FindUserByEmail(ctx context.Context, emailname string) (resp FsUser, err error) { - err = u.db.WithContext(ctx).Model(&FsUser{}).Where("`email` = ?", emailname).Take(&resp).Error + err = u.db.WithContext(ctx).Model(&FsUser{}).Where("`email` = ? and is_del = ?", emailname, 0).Take(&resp).Error return resp, err }