|
@@ -1,11 +1,7 @@
|
|
|
package cn.com.qmth.examcloud.core.oe.student.face.starter.config;
|
|
|
|
|
|
-import cn.com.qmth.examcloud.commons.helpers.concurrency.simple.ConcurrentTask;
|
|
|
-import cn.com.qmth.examcloud.commons.util.Util;
|
|
|
-import cn.com.qmth.examcloud.core.oe.common.entity.ExamCaptureQueueEntity;
|
|
|
-import cn.com.qmth.examcloud.core.oe.common.repository.ExamCaptureQueueRepo;
|
|
|
-import cn.com.qmth.examcloud.core.oe.student.face.service.impl.BaiduFaceLivenessWorker;
|
|
|
-import cn.com.qmth.examcloud.web.bootstrap.PropertyHolder;
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
import org.apache.commons.logging.Log;
|
|
|
import org.apache.commons.logging.LogFactory;
|
|
|
import org.slf4j.Logger;
|
|
@@ -16,14 +12,18 @@ import org.springframework.boot.ApplicationRunner;
|
|
|
import org.springframework.core.annotation.Order;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
-import java.util.List;
|
|
|
-import java.util.concurrent.TimeUnit;
|
|
|
+import cn.com.qmth.examcloud.commons.helpers.concurrency.simple.ConcurrentTask;
|
|
|
+import cn.com.qmth.examcloud.commons.util.Util;
|
|
|
+import cn.com.qmth.examcloud.core.oe.common.entity.ExamCaptureQueueEntity;
|
|
|
+import cn.com.qmth.examcloud.core.oe.common.repository.ExamCaptureQueueRepo;
|
|
|
+import cn.com.qmth.examcloud.core.oe.student.face.service.impl.BaiduFaceLivenessWorker;
|
|
|
+import cn.com.qmth.examcloud.web.bootstrap.PropertyHolder;
|
|
|
|
|
|
/**
|
|
|
* 启动百度活体检测任务
|
|
|
*/
|
|
|
@Component
|
|
|
-@Order(50)
|
|
|
+@Order(201)
|
|
|
public class ProcessBaiduFacelivenessTask implements ApplicationRunner {
|
|
|
|
|
|
private static final Logger log = LoggerFactory.getLogger(ProcessBaiduFacelivenessTask.class);
|