mirror of
https://github.com/Jerryplusy/crystelf-plugin.git
synced 2025-07-04 14:19:19 +00:00
修复bug
This commit is contained in:
parent
1ac1af9e32
commit
d4b32c763a
@ -223,14 +223,14 @@ export class xzq extends plugin {
|
|||||||
try {
|
try {
|
||||||
let res;
|
let res;
|
||||||
if (e.isGroup) {
|
if (e.isGroup) {
|
||||||
res = e.bot.sendApi('upload_group_file', {
|
res = await e.bot.sendApi('upload_group_file', {
|
||||||
group_id: e.group_id,
|
group_id: e.group_id,
|
||||||
file: filePath,
|
file: filePath,
|
||||||
name: bookInfo.book_name,
|
name: bookInfo.book_name,
|
||||||
folder: 'fanqie',
|
folder: 'fanqie',
|
||||||
});
|
});
|
||||||
} else if (e.friend) {
|
} else if (e.friend) {
|
||||||
res = e.bot.sendApi('upload_private_file', {
|
res = await e.bot.sendApi('upload_private_file', {
|
||||||
user_id: e.user_id,
|
user_id: e.user_id,
|
||||||
file: filePath,
|
file: filePath,
|
||||||
name: bookInfo.book_name,
|
name: bookInfo.book_name,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user