feat(admin): 增加执行器注册地址协议校验

- 引入HttpTool工具类用于URL协议校验
- 在新增执行器接口中增加对注册地址的HTTP/HTTPS协议校验
- 在更新执行器接口中增加对注册地址的HTTP/HTTPS协议校验
- 协议校验失败时返回明确的错误提示信息
- 更新文档中的接入公司列表,新增两家公司信息
3.3.0-release 3.3.0
xuxueli 1 week ago
parent 43bfb69938
commit 780dcf7c40

@ -860,6 +860,8 @@ XXL-JOB 是一个开源且免费项目,其正在进行的开发完全得益于
- 705、深圳市极能超电数字科技有限公司
- 706、安克创新科技股份有限公司【安克】
- 707、大庆点神科技有限公司
- 708、浙江零跑科技股份有限公司【零跑】
- 709、成都成电金盘健康数据技术有限公司
- ……
> 更多接入的公司,欢迎在 [登记地址](https://github.com/xuxueli/xxl-job/issues/1 ) 登记,登记仅仅为了产品推广。

@ -804,6 +804,8 @@ XXL-JOB是一个分布式任务调度平台其核心设计目标是开发迅
- 705、深圳市极能超电数字科技有限公司
- 706、安克创新科技股份有限公司【安克】
- 707、大庆点神科技有限公司
- 708、浙江零跑科技股份有限公司【零跑】
- 709、成都成电金盘健康数据技术有限公司
- ……
> 更多接入的公司,欢迎在 [登记地址](https://github.com/xuxueli/xxl-job/issues/1 ) 登记,登记仅仅为了产品推广。

@ -12,6 +12,7 @@ import com.xxl.job.core.constant.RegistType;
import com.xxl.sso.core.annotation.XxlSso;
import com.xxl.tool.core.CollectionTool;
import com.xxl.tool.core.StringTool;
import com.xxl.tool.http.HttpTool;
import com.xxl.tool.response.PageModel;
import com.xxl.tool.response.Response;
import jakarta.annotation.Resource;
@ -98,6 +99,9 @@ public class JobGroupController {
if (StringTool.isBlank(item)) {
return Response.ofFail( I18nUtil.getString("jobgroup_field_registryList_unvalid") );
}
if (!(HttpTool.isHttp(item) || HttpTool.isHttps(item))) {
return Response.ofFail( I18nUtil.getString("jobgroup_field_registryList_unvalid")+"[2]" );
}
}
}
@ -141,6 +145,9 @@ public class JobGroupController {
if (StringTool.isBlank(item)) {
return Response.ofFail(I18nUtil.getString("jobgroup_field_registryList_unvalid") );
}
if (!(HttpTool.isHttp(item) || HttpTool.isHttps(item))) {
return Response.ofFail( I18nUtil.getString("jobgroup_field_registryList_unvalid")+"[2]" );
}
}
}

Loading…
Cancel
Save