完善注释

This commit is contained in:
Jerry 2025-05-15 12:56:03 +08:00
parent 858b34ee37
commit 1ef55237fb
2 changed files with 3 additions and 1 deletions

View File

@ -206,6 +206,7 @@ export class xzq extends plugin {
}
async upload(e, filePath) {
// TODO 修好这发文件的bug
try {
/*
let res;
@ -237,7 +238,7 @@ export class xzq extends plugin {
});
form.append('file', fileStream);
form.append('token', configControl.get('coreConfig')?.token);
await finished(fileStream);
await finished(fileStream); //这文件读取也太慢了
const uploadUrl = `${configControl.get('coreConfig')?.coreUrl}/public/upload?dir=fanqie&expire=600`;
const response = await axios.post(uploadUrl, form, {
headers: form.getHeaders(),

View File

@ -79,6 +79,7 @@ class Handler {
* @param msg
* @returns {Promise<void>}
*/
// TODO 测试可用性
async handleSendMessage(client, msg) {
const botId = msg.data?.botId;
const groupId = msg.data?.groupId;