Skip to content

Commit 780dcf7

Browse files
committed
feat(admin): 增加执行器注册地址协议校验
- 引入HttpTool工具类用于URL协议校验 - 在新增执行器接口中增加对注册地址的HTTP/HTTPS协议校验 - 在更新执行器接口中增加对注册地址的HTTP/HTTPS协议校验 - 协议校验失败时返回明确的错误提示信息 - 更新文档中的接入公司列表,新增两家公司信息
1 parent 43bfb69 commit 780dcf7

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -860,6 +860,8 @@ XXL-JOB 是一个开源且免费项目,其正在进行的开发完全得益于
860860
- 705、深圳市极能超电数字科技有限公司
861861
- 706、安克创新科技股份有限公司【安克】
862862
- 707、大庆点神科技有限公司
863+
- 708、浙江零跑科技股份有限公司【零跑】
864+
- 709、成都成电金盘健康数据技术有限公司
863865
- ……
864866

865867
> 更多接入的公司,欢迎在 [登记地址](https://github.com/xuxueli/xxl-job/issues/1 ) 登记,登记仅仅为了产品推广。

doc/XXL-JOB官方文档.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -804,6 +804,8 @@ XXL-JOB是一个分布式任务调度平台,其核心设计目标是开发迅
804804
- 705、深圳市极能超电数字科技有限公司
805805
- 706、安克创新科技股份有限公司【安克】
806806
- 707、大庆点神科技有限公司
807+
- 708、浙江零跑科技股份有限公司【零跑】
808+
- 709、成都成电金盘健康数据技术有限公司
807809
- ……
808810

809811
> 更多接入的公司,欢迎在 [登记地址](https://github.com/xuxueli/xxl-job/issues/1 ) 登记,登记仅仅为了产品推广。

xxl-job-admin/src/main/java/com/xxl/job/admin/controller/biz/JobGroupController.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
import com.xxl.sso.core.annotation.XxlSso;
1313
import com.xxl.tool.core.CollectionTool;
1414
import com.xxl.tool.core.StringTool;
15+
import com.xxl.tool.http.HttpTool;
1516
import com.xxl.tool.response.PageModel;
1617
import com.xxl.tool.response.Response;
1718
import jakarta.annotation.Resource;
@@ -98,6 +99,9 @@ public Response<String> insert(XxlJobGroup xxlJobGroup){
9899
if (StringTool.isBlank(item)) {
99100
return Response.ofFail( I18nUtil.getString("jobgroup_field_registryList_unvalid") );
100101
}
102+
if (!(HttpTool.isHttp(item) || HttpTool.isHttps(item))) {
103+
return Response.ofFail( I18nUtil.getString("jobgroup_field_registryList_unvalid")+"[2]" );
104+
}
101105
}
102106
}
103107

@@ -141,6 +145,9 @@ public Response<String> update(XxlJobGroup xxlJobGroup){
141145
if (StringTool.isBlank(item)) {
142146
return Response.ofFail(I18nUtil.getString("jobgroup_field_registryList_unvalid") );
143147
}
148+
if (!(HttpTool.isHttp(item) || HttpTool.isHttps(item))) {
149+
return Response.ofFail( I18nUtil.getString("jobgroup_field_registryList_unvalid")+"[2]" );
150+
}
144151
}
145152
}
146153

0 commit comments

Comments
 (0)