mirror of
https://github.com/Jerryplusy/crystelf-plugin.git
synced 2025-07-04 14:19:19 +00:00
修番茄小说功能
This commit is contained in:
parent
f5cb337664
commit
e478022a9c
@ -207,13 +207,12 @@ export default class xzq extends plugin {
|
|||||||
// TODO 修好这发文件的bug
|
// TODO 修好这发文件的bug
|
||||||
try {
|
try {
|
||||||
let res;
|
let res;
|
||||||
logger.info(filePath);
|
//logger.info(filePath);
|
||||||
if (e.isGroup) {
|
if (e.isGroup) {
|
||||||
res = await 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: path.basename(filePath),
|
name: path.basename(filePath),
|
||||||
folder: 'fanqie',
|
|
||||||
});
|
});
|
||||||
} else if (e.friend) {
|
} else if (e.friend) {
|
||||||
res = await e.bot.sendApi('upload_private_file', {
|
res = await e.bot.sendApi('upload_private_file', {
|
||||||
@ -222,6 +221,7 @@ export default class xzq extends plugin {
|
|||||||
name: path.basename(filePath),
|
name: path.basename(filePath),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
logger.info(res);
|
||||||
return res;
|
return res;
|
||||||
/*
|
/*
|
||||||
//另外一种解决方法
|
//另外一种解决方法
|
||||||
|
Loading…
x
Reference in New Issue
Block a user