From 4aa991153a0cd93b7d0358a481ce8dac2e7f4e2f Mon Sep 17 00:00:00 2001 From: Jerry Date: Fri, 16 May 2025 12:41:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=99=9A=E7=82=B9=E5=86=8D=E4=BF=AE=E7=95=AA?= =?UTF-8?q?=E8=8C=84=E8=A7=A3=E6=9E=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/fanqie.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/apps/fanqie.js b/apps/fanqie.js index d3fea3c..7c3782a 100644 --- a/apps/fanqie.js +++ b/apps/fanqie.js @@ -2,11 +2,7 @@ import fs from 'node:fs'; import path from 'path'; import chokidar from 'chokidar'; import ConfigControl from '../lib/config/configControl.js'; -import configControl from '../lib/config/configControl.js'; import Fanqie from '../models/apps/fanqie/fanqie.js'; -import axios from 'axios'; -import FormData from 'form-data'; -import { finished } from 'stream/promises'; let redis = global.redis; @@ -225,7 +221,7 @@ export class xzq extends plugin { }); } return !!res; - */ + //另外一种解决方法 const form = new FormData(); if (!fs.existsSync(filePath)) { logger.error(`文件不存在:${filePath}`); @@ -249,7 +245,8 @@ export class xzq extends plugin { const url = response.data?.url; const message = response.data?.message; return { url, message }; - } + }*/ + return null; } catch (err) { logger.error(`文件上传错误:${logger.red(err.stack)}`); e.reply(`文件上传失败:${err.message}`, true);