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"); }