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

View File

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

View File

@ -79,7 +79,7 @@ export default class RssPlugin extends plugin {
*/ */
async autoAddFeed(e) { async autoAddFeed(e) {
//if (/^#rss/i.test(e.msg.trim())) return false; //if (/^#rss/i.test(e.msg.trim())) return false;
if (!ConfigControl.get()?.rss) { if (!ConfigControl.get()?.config?.rss) {
return; return;
} }
const url = e.msg.match(/(https?:\/\/\S+(?:\.atom|\/feed))/i)?.[1]; 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) { async www(e) {
if (!ConfigControl.get()?.zwa) { if (!ConfigControl.get()?.config?.zwa) {
return; return;
} }
const currentHour = getCurrentHour(); const currentHour = getCurrentHour();
@ -108,8 +108,8 @@ export class ZWA extends plugin {
} }
async zzz(e) { async zzz(e) {
logger.info(ConfigControl.get()); //logger.info(ConfigControl.get());
if (!ConfigControl.get()?.zwa) { if (!ConfigControl.get()?.config?.zwa) {
return; return;
} }
@ -158,7 +158,7 @@ export class ZWA extends plugin {
} }
} }
async wuan(e) { async wuan(e) {
if (!ConfigControl.get()?.zwa) { if (!ConfigControl.get()?.config?.zwa) {
return; return;
} }
if (e.isMaster) { if (e.isMaster) {