From c43565ef43b9744983d6c2604a53115c1d517b4e Mon Sep 17 00:00:00 2001 From: RuoYi Date: Fri, 25 Feb 2022 09:11:31 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=84=E4=BB=B6ImageUpload=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E5=A4=9A=E5=9B=BE=E5=90=8C=E6=97=B6=E9=80=89=E6=8B=A9=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/ruoyi/job/util/ScheduleUtils.java | 5 +---- ruoyi-ui/src/components/ImageUpload/index.vue | 15 ++++++++++++--- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/ruoyi-modules/ruoyi-job/src/main/java/com/ruoyi/job/util/ScheduleUtils.java b/ruoyi-modules/ruoyi-job/src/main/java/com/ruoyi/job/util/ScheduleUtils.java index 4e8961a..d0881c2 100644 --- a/ruoyi-modules/ruoyi-job/src/main/java/com/ruoyi/job/util/ScheduleUtils.java +++ b/ruoyi-modules/ruoyi-job/src/main/java/com/ruoyi/job/util/ScheduleUtils.java @@ -125,10 +125,7 @@ public class ScheduleUtils int count = StringUtils.countMatches(packageName, "."); if (count > 1) { - if (!StringUtils.containsAnyIgnoreCase(invokeTarget, Constants.JOB_WHITELIST_STR)) - { - return false; - } + return StringUtils.containsAnyIgnoreCase(invokeTarget, Constants.JOB_WHITELIST_STR); } return true; } diff --git a/ruoyi-ui/src/components/ImageUpload/index.vue b/ruoyi-ui/src/components/ImageUpload/index.vue index 1f3a9c1..53dec4c 100644 --- a/ruoyi-ui/src/components/ImageUpload/index.vue +++ b/ruoyi-ui/src/components/ImageUpload/index.vue @@ -1,6 +1,7 @@