fix: 修复omada上云问题
This commit is contained in:
@@ -20,7 +20,6 @@ import org.wfc.common.core.web.domain.AjaxResult;
|
||||
import org.wfc.common.core.web.page.TableDataInfo;
|
||||
import org.wfc.common.log.annotation.Log;
|
||||
import org.wfc.common.log.enums.BusinessType;
|
||||
//import org.wfc.common.security.annotation.RequiresPermissions;
|
||||
import org.wfc.common.security.utils.SecurityUtils;
|
||||
import org.wfc.job.domain.SysJob;
|
||||
import org.wfc.job.service.ISysJobService;
|
||||
@@ -176,9 +175,9 @@ public class SysJobController extends BaseController
|
||||
{
|
||||
SysJob sysJob = jobService.selectJobById(job.getJobId());
|
||||
if (sysJob != null && sysJob.getInvokeTarget().contains("omadaTask")) {
|
||||
R<Boolean> omadaResult = omadaTask.testOmadaApi();
|
||||
if (omadaResult.getCode() != 200) {
|
||||
return error(omadaResult.getMsg());
|
||||
R<String> omadaResult = omadaTask.testOmadaApi();
|
||||
if (!"success".equals(omadaResult.getData())) {
|
||||
return error(omadaResult.getData());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -30,8 +30,8 @@ public class OmadaTask {
|
||||
log.info("wifi定时任务执行成功, 耗时:{} 毫秒", endTime - startTime);
|
||||
}
|
||||
|
||||
public R<Boolean> testOmadaApi() {
|
||||
return remoteUserService.deviceJob();
|
||||
public R<String> testOmadaApi() {
|
||||
return remoteUserService.testJob();
|
||||
}
|
||||
|
||||
public R<Boolean> initJob() {
|
||||
|
||||
Reference in New Issue
Block a user