mirror of
https://github.com/Jerryplusy/crystelf-plugin.git
synced 2025-07-05 14:39:18 +00:00
优化
This commit is contained in:
parent
472f6ebec0
commit
924f818a1f
@ -5,6 +5,7 @@ import ConfigControl from '../lib/config/configControl.js';
|
|||||||
import configControl from '../lib/config/configControl.js';
|
import configControl from '../lib/config/configControl.js';
|
||||||
import Fanqie from '../models/apps/fanqie/fanqie.js';
|
import Fanqie from '../models/apps/fanqie/fanqie.js';
|
||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
|
import FormData from 'form-data';
|
||||||
|
|
||||||
let redis = global.redis;
|
let redis = global.redis;
|
||||||
|
|
||||||
@ -195,7 +196,7 @@ export class xzq extends plugin {
|
|||||||
|
|
||||||
const uploadReturn = await this.upload(e, filePath);
|
const uploadReturn = await this.upload(e, filePath);
|
||||||
await this.clearCache(false, true, String(e.message_id));
|
await this.clearCache(false, true, String(e.message_id));
|
||||||
if (!uploadOk) return e.reply('上传失败', true);
|
if (!uploadReturn) return e.reply('上传失败', true);
|
||||||
|
|
||||||
e.reply(
|
e.reply(
|
||||||
`《${book_info.book_name}》上传成功,用时 ${(Date.now() - startTime) / 1000}s\n下载链接为${uploadReturn.url},将在10分钟后删除,请及时下载`
|
`《${book_info.book_name}》上传成功,用时 ${(Date.now() - startTime) / 1000}s\n下载链接为${uploadReturn.url},将在10分钟后删除,请及时下载`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user