mirror of
https://github.com/Jerryplusy/crystelf-plugin.git
synced 2025-07-04 06:09:19 +00:00
完善注释
This commit is contained in:
parent
858b34ee37
commit
1ef55237fb
@ -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(),
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user