From 6cdfb0757598a62843c3302c9b6124d24be233b5 Mon Sep 17 00:00:00 2001 From: Lkeme <19500576+lkeme@users.noreply.github.com> Date: Tue, 1 Aug 2023 18:38:36 +0800 Subject: [PATCH] [fix] PolishMedal --- plugin/PolishMedal/PolishMedal.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/PolishMedal/PolishMedal.php b/plugin/PolishMedal/PolishMedal.php index 87b595b..3272da7 100644 --- a/plugin/PolishMedal/PolishMedal.php +++ b/plugin/PolishMedal/PolishMedal.php @@ -141,7 +141,7 @@ class PolishMedal extends BasePlugin */ private static function fetchGreyMedalList(bool $all = false): void { - self::$black_list = Cache::get('black_list') ?? self::$black_list; + self::$black_list = ($tmp = Cache::get('black_list')) ? $tmp : []; // 获取徽章列表 $data = self::fetchMedalList(); foreach ($data as $vo) {