| | |
| | | import com.ruoyi.common.exception.job.TaskException;
|
| | | import com.ruoyi.common.exception.job.TaskException.Code;
|
| | | import com.ruoyi.common.utils.StringUtils;
|
| | | import com.ruoyi.common.utils.spring.SpringUtils;
|
| | | import com.ruoyi.project.monitor.domain.SysJob;
|
| | |
|
| | | /**
|
| | |
| | | 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;
|
| | | Object obj = SpringUtils.getBean(StringUtils.split(invokeTarget, ".")[0]);
|
| | | return StringUtils.containsAnyIgnoreCase(obj.getClass().getPackage().getName(), Constants.JOB_WHITELIST_STR);
|
| | | }
|
| | | }
|