From 3d071264423e0850ec07720b1b6273ea4873f0bd Mon Sep 17 00:00:00 2001 From: liuzx Date: Thu, 24 Mar 2022 16:41:37 +0800 Subject: [PATCH] fix-bug --- models/attachment.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/models/attachment.go b/models/attachment.go index c7d058651..a3fc6fa01 100755 --- a/models/attachment.go +++ b/models/attachment.go @@ -571,8 +571,8 @@ func Attachments(opts *AttachmentsOptions) ([]*AttachmentInfo, int64, error) { } if opts.JustNeedZipFile { - var DecompressState []int - DecompressState = append(DecompressState, 1, 2, 3) + var DecompressState []int32 + DecompressState = append(DecompressState, DecompressStateDone, DecompressStateIng, DecompressStateFailed) cond = cond.And( builder.In("attachment.decompress_state", DecompressState), )