🐛 计划任务创建后会自动执行.
This commit is contained in:
@@ -112,7 +112,7 @@ public class ExecJobServiceImpl implements ExecJobService {
|
||||
// 设置任务主机
|
||||
execJobHostService.setHostIdByJobId(id, request.getHostIdList());
|
||||
// 设置 quartz 状态
|
||||
this.setQuartzJobStatus(record, false, true);
|
||||
// this.setQuartzJobStatus(record, false, false);
|
||||
log.info("ExecJobService-createExecJob id: {}, effect: {}", id, effect);
|
||||
return id;
|
||||
}
|
||||
|
||||
@@ -55,6 +55,14 @@ export function isWindow(el: any): el is Window {
|
||||
/**
|
||||
* 是否为移动端 ua
|
||||
*/
|
||||
export function isMobile(userAgent: string) {
|
||||
export function isMobile(userAgent: string): boolean {
|
||||
return /Mobi|Android|iPhone/i.test(userAgent);
|
||||
}
|
||||
|
||||
/**
|
||||
* 是否为 IPv4
|
||||
*/
|
||||
export function isIPv4(ip: string): boolean {
|
||||
const reg = /^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/;
|
||||
return reg.test(ip);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user