From dad14e57cd853e7f8dbdb63be731cfba796b6c90 Mon Sep 17 00:00:00 2001 From: WuYongJie <549727955@qq.com> Date: Mon, 30 Nov 2026 21:11:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=92=E9=99=A4=E6=99=AE=E9=80=9A=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0=E4=B8=AD=E7=9A=84=E4=BA=A4=E4=BB=98=E7=B4=A0=E6=9D=90?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/UploadModal.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/components/UploadModal.tsx b/components/UploadModal.tsx index 0a1ecad3..83cb4394 100644 --- a/components/UploadModal.tsx +++ b/components/UploadModal.tsx @@ -46,6 +46,7 @@ import { import { buildFormData, uploadSingleFile, submitFormData } from '@/components/upload/file-upload-handlers' import { requiresCategoryAndScene, requiresProductCategoryName, requiresRenderer, shouldAutoFillGeneral } from '@/lib/material-validation' import { MATERIAL_TYPE_OPTIONS, type MaterialTypeOption } from '@/lib/material-type-options' +import { isXiaoyiDeliveryMaterial } from '@/lib/xiaoyi-delivery-material' import { isBatchVideoMaterialType, isVideoMaterialType, @@ -2058,9 +2059,10 @@ export default function UploadModal({ onClose, onSuccess, materialTypeCounts = { value={materialType} onChange={setMaterialType} disabled={interactionLocked} - options={accessScope === 'operations_g' ? [...MATERIAL_TYPE_OPTIONS] : availableMaterialTypes.length > 0 + options={(accessScope === 'operations_g' ? [...MATERIAL_TYPE_OPTIONS] : availableMaterialTypes.length > 0 ? availableMaterialTypes - : MATERIAL_TYPE_OPTIONS.filter((type) => !SPECIAL_UPLOAD_TYPES.includes(type as typeof SPECIAL_UPLOAD_TYPES[number]))} + : MATERIAL_TYPE_OPTIONS.filter((type) => !SPECIAL_UPLOAD_TYPES.includes(type as typeof SPECIAL_UPLOAD_TYPES[number]))) + .filter((type) => !isXiaoyiDeliveryMaterial(type))} counts={materialTypeCounts} />