fix:修复config查询问题

This commit is contained in:
Jerry 2025-10-05 11:23:29 +08:00
parent b8f6f737e9
commit 262ef938c2
4 changed files with 8 additions and 8 deletions

View File

@ -117,7 +117,7 @@ export default class FanqiePlugin extends plugin {
* 解析网页链接中的 book_id
*/
async handleFanqieLink(e) {
if (!ConfigControl.get()?.fanqie) {
if (!ConfigControl.get()?.config?.fanqie) {
return;
}
const message = e.msg.trim();
@ -140,7 +140,7 @@ export default class FanqiePlugin extends plugin {
* 使用 #fq下载 命令下载
*/
async downloadByBookId(e) {
if (!ConfigControl.get()?.fanqie) {
if (!ConfigControl.get()?.config?.fanqie) {
return;
}
const bookId = e.msg.replace(/^#?fq下载/, '').trim();

View File

@ -20,7 +20,7 @@ export default class ChuochuoPlugin extends plugin {
}
async chuoyichuo(e) {
if (!ConfigControl.get()?.poke) {
if (!ConfigControl.get()?.config?.poke) {
return;
}

View File

@ -79,7 +79,7 @@ export default class RssPlugin extends plugin {
*/
async autoAddFeed(e) {
//if (/^#rss/i.test(e.msg.trim())) return false;
if (!ConfigControl.get()?.rss) {
if (!ConfigControl.get()?.config?.rss) {
return;
}
const url = e.msg.match(/(https?:\/\/\S+(?:\.atom|\/feed))/i)?.[1];

View File

@ -45,7 +45,7 @@ export class ZWA extends plugin {
}
async www(e) {
if (!ConfigControl.get()?.zwa) {
if (!ConfigControl.get()?.config?.zwa) {
return;
}
const currentHour = getCurrentHour();
@ -108,8 +108,8 @@ export class ZWA extends plugin {
}
async zzz(e) {
logger.info(ConfigControl.get());
if (!ConfigControl.get()?.zwa) {
//logger.info(ConfigControl.get());
if (!ConfigControl.get()?.config?.zwa) {
return;
}
@ -158,7 +158,7 @@ export class ZWA extends plugin {
}
}
async wuan(e) {
if (!ConfigControl.get()?.zwa) {
if (!ConfigControl.get()?.config?.zwa) {
return;
}
if (e.isMaster) {