From b97309b39ac9e37c46c4761e5d2e77ea7b3f0e37 Mon Sep 17 00:00:00 2001 From: ctrlcvs <1509167646@qq.com> Date: Sat, 17 Sep 2022 14:01:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DV2=E5=90=AF=E5=8A=A8=E6=8A=A5?= =?UTF-8?q?=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/Note.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/Note.js b/apps/Note.js index 7712653..a22ca6b 100644 --- a/apps/Note.js +++ b/apps/Note.js @@ -16,7 +16,6 @@ import { import moment from 'moment'; import MysApi from "../model/mys/mysApi.js"; import utils from "../model/mys/utils.js"; -import {getRender} from "../adapter/render.js" const _path = process.cwd(); let role_user = Data.readJSON(`${_path}/plugins/xiaoyao-cvs-plugin/resources/dailyNote/json/`, "dispatch_time"); @@ -354,6 +353,7 @@ export async function DailyNoteTask() { EX: sendCD }); if(isV3){ + let {getRender} = await import(`file://${_path}/plugins/xiaoyao-cvs-plugin/render.js`); await Note(e, {render:await getRender()}); }else{ let {getPluginRender} = await import(`file://${_path}/lib/render.js`); @@ -368,7 +368,6 @@ export async function pokeNote(e,{render}) { if (!Cfg.get("note.poke")) { return false; } - // return await Note(e,{render:await getRender()}, "poke"); return await Note(e,{render}, "poke"); }