Explorar o código

merge from release_v4.1.3

deason %!s(int64=2) %!d(string=hai) anos
pai
achega
56953c80ed

+ 26 - 0
src/main/java/cn/com/qmth/examcloud/app/controller/DevOpsController.java

@@ -0,0 +1,26 @@
+package cn.com.qmth.examcloud.app.controller;
+
+import cn.com.qmth.examcloud.web.support.Naked;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+@Api(tags = "运维接口")
+@RestController
+@RequestMapping("${$rmp}")
+public class DevOpsController {
+
+    private static final Logger log = LoggerFactory.getLogger(DevOpsController.class);
+
+    @Naked
+    @ApiOperation(value = "运维监控检测接口")
+    @GetMapping("/devops")
+    public Long devops() {
+        return System.currentTimeMillis();
+    }
+
+}

+ 3 - 3
src/main/java/cn/com/qmth/examcloud/app/service/impl/FaceVerifyServiceImpl.java

@@ -42,7 +42,7 @@ public class FaceVerifyServiceImpl implements FaceVerifyService {
 
     @Override
     public Result compare(String key, String token, String fileUrl, String signIdentifier) throws Exception {
-        final String requestUrl = String.format("%s/api/ecs_oe_student_face/examCaptureQueue/compareFaceSync?fileUrl=%s&signIdentifier=%s",
+        final String requestUrl = String.format("%s/api/ecs_oe_student/examCaptureQueue/compareFaceSync?fileUrl=%s&signIdentifier=%s",
                 sysProperty.getApiDomain(), fileUrl != null ? fileUrl : "", signIdentifier != null ? signIdentifier : "");
 
         RequestBody formBody = new FormBody.Builder().build();
@@ -51,7 +51,7 @@ public class FaceVerifyServiceImpl implements FaceVerifyService {
 
     @Override
     public Result saveCaptureInfo(String key, String token, CaptureInfo captureInfo) throws Exception {
-        final String requestUrl = String.format("%s/api/ecs_oe_student_face/examCaptureQueue/uploadExamCapture", sysProperty.getApiDomain());
+        final String requestUrl = String.format("%s/api/ecs_oe_student/examCaptureQueue/uploadExamCapture", sysProperty.getApiDomain());
 
         String json = new JsonMapper().toJson(captureInfo);
         RequestBody formBody = FormBody.create(MediaType.parse(Constants.CHARSET_JSON_UTF8), json);
@@ -60,7 +60,7 @@ public class FaceVerifyServiceImpl implements FaceVerifyService {
 
     @Override
     public Result getCaptureResult(String key, String token, Long examRecordDataId, String fileName) throws Exception {
-        final String requestUrl = String.format("%s/api/ecs_oe_student_face/examCaptureQueue/getExamCaptureResult?examRecordDataId=%s&fileName=%s",
+        final String requestUrl = String.format("%s/api/ecs_oe_student/examCaptureQueue/getExamCaptureResult?examRecordDataId=%s&fileName=%s",
                 sysProperty.getApiDomain(), examRecordDataId, fileName != null ? fileName : "");
 
         return HttpUtils.doGet(requestUrl, key, token);