From 0c3514d709055020061b91b9e74a753c17980505 Mon Sep 17 00:00:00 2001 From: eson <9673575+githubcontent@user.noreply.gitee.com> Date: Thu, 14 Sep 2023 14:59:44 +0800 Subject: [PATCH] fix --- model/gmodel/fs_user_logic.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/model/gmodel/fs_user_logic.go b/model/gmodel/fs_user_logic.go index e938690c..596c6b13 100644 --- a/model/gmodel/fs_user_logic.go +++ b/model/gmodel/fs_user_logic.go @@ -287,16 +287,16 @@ func (u *FsUserModel) DebugAuthDelete(ctx context.Context, email string) (err er txUserMaterial := tx.Model(&FsUserMaterial{}) txUserInfo := tx.Model(&FsUserInfo{}) - // 继承guest_id的资源表 err = txRes. - Where("user_id = ?", user.Id).Delete(&FsResource{}).Error + Where("user_id = ?", user.Id). + Update("version", "0.0.0").Error if err != nil && err != gorm.ErrRecordNotFound { return err } err = txUserMaterial. Where("user_id = ?", user.Id). - Delete(&FsUserMaterial{}).Error + Update("module", "clear").Error if err != nil && err != gorm.ErrRecordNotFound { return err }