This commit is contained in:
eson 2023-09-21 23:59:01 +08:00
parent 58e2068170
commit bd1b6ee23e

View File

@ -65,7 +65,7 @@ func InheritGuestIdResource(tx *gorm.DB, userId, guestId int64, afterDo func(txR
if guestId != 0 {
// 继承guest_id的资源表
err = txRes.
Where("guest_id = ? and module != 'clear' and module != 'temp'", guestId).
Where("guest_id = ? and source != 'temp'", guestId).
UpdateColumn("user_id", userId).Error
if err != nil && err != gorm.ErrRecordNotFound {