️ 适配Miao-Yunzaiv4

This commit is contained in:
yeyang
2024-06-22 20:54:05 +08:00
parent 90b8ef8c80
commit 8c41978052
2 changed files with 17 additions and 2 deletions

View File

@@ -1,5 +1,13 @@
import { update as Update } from "../../other/update.js"
/* eslint-disable import/no-unresolved */
import { common } from "../model/index.js"
let Update = null
try {
Update = (await import("../../other/update.js").catch(e => null))?.update
Update ||= (await import("../../system/apps/update.ts")).update
} catch (e) {
logger.error("[yenai-plugin]未获取到更新js #椰奶更新 将无法使用")
}
export class YenaiUpdate extends plugin {
constructor() {
super({

View File

@@ -1,6 +1,13 @@
import { update } from "../../other/update.js"
/* eslint-disable import/no-unresolved */
import { Version, Plugin_Name } from "../components/index.js"
import { puppeteer } from "../model/index.js"
let update = null
try {
update = (await import("../../other/update.js").catch(e => null))?.update
update ||= (await import("../../system/apps/update.ts")).update
} catch (e) {
// logger.error("[yenai-plugin]未获取到更新js #椰奶更新 将无法使用")
}
export class NewVersion extends plugin {
constructor() {
super({