From 920cec41cedfde27f89d7c19b78e03147b926ab5 Mon Sep 17 00:00:00 2001
From: wangzhibo <wangzhibo@shsening.com>
Date: 星期二, 28 七月 2026 10:58:45 +0800
Subject: [PATCH] add pdfjs and traderecord

---
 src/modules/plugin/hooks/upload/index.ts |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/modules/plugin/hooks/upload/index.ts b/src/modules/plugin/hooks/upload/index.ts
index 72a9c4c..b5c1d6b 100644
--- a/src/modules/plugin/hooks/upload/index.ts
+++ b/src/modules/plugin/hooks/upload/index.ts
@@ -156,7 +156,7 @@
   async upload(ctx: any) {
     const { domain } = this.pluginInfo.config;
     try {
-      const { key } = ctx.fields;
+      const key = ctx.fields?.key;
       const basePath = pUploadPath();
       const dateDir = moment().format('YYYYMMDD');
 

--
Gitblit v1.9.1