From e7461bbb4e33a596b900f141873e9e38b6cb5dd9 Mon Sep 17 00:00:00 2001 From: "1152958806@qq.com" <1152958806@qq.com> Date: Fri, 31 May 2024 16:18:34 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E9=83=A8=E5=88=86=E5=AE=89?= =?UTF-8?q?=E8=A3=85=E6=8F=92=E4=BB=B6=E9=94=99=E8=AF=AF=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/la/moony/douban/DoubanPlugin.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/la/moony/douban/DoubanPlugin.java b/src/main/java/la/moony/douban/DoubanPlugin.java index f6713f4..32466dd 100644 --- a/src/main/java/la/moony/douban/DoubanPlugin.java +++ b/src/main/java/la/moony/douban/DoubanPlugin.java @@ -4,6 +4,7 @@ import la.moony.douban.extension.DoubanMovie; import org.apache.commons.lang3.BooleanUtils; import org.springframework.stereotype.Component; +import run.halo.app.extension.Scheme; import run.halo.app.extension.SchemeManager; import run.halo.app.extension.index.IndexSpec; import run.halo.app.plugin.BasePlugin; @@ -90,7 +91,7 @@ public void start() { @Override public void stop() { - schemeManager.unregister(schemeManager.get(DoubanMovie.class)); - schemeManager.unregister(schemeManager.get(CronDouban.class)); + schemeManager.unregister(Scheme.buildFromType(DoubanMovie.class)); + schemeManager.unregister(Scheme.buildFromType(CronDouban.class)); } }