Pārlūkot izejas kodu

cancel oss internal domain...

deason 2 gadi atpakaļ
vecāks
revīzija
9c320206bc

+ 4 - 2
examcloud-core-oe-student-service/src/main/java/cn/com/qmth/examcloud/core/oe/student/service/impl/ExamCaptureServiceImpl.java

@@ -198,10 +198,12 @@ public class ExamCaptureServiceImpl implements ExamCaptureService {
 
         try {
             FaceResult faceResult;
-            String capturePhotoUrl = systemProperties.replaceFileUrlInternalDomain(FileStorageUtil.realPath(fileUrl));
+            // String capturePhotoUrl = systemProperties.replaceFileUrlInternalDomain(FileStorageUtil.realPath(fileUrl));
+            String capturePhotoUrl = FileStorageUtil.realPath(fileUrl);
             ImageParm imageParm = new ImageUrlParm(capturePhotoUrl);
             if (useBaiduApi) {
-                String basePhotoUrl = systemProperties.replaceFileUrlInternalDomain(student.getPhotoPath());
+                // String basePhotoUrl = systemProperties.replaceFileUrlInternalDomain(student.getPhotoPath());
+                String basePhotoUrl = student.getPhotoPath();
                 faceResult = faceVerifyService.faceCompareByBaidu(new ImageUrlParm(basePhotoUrl), imageParm, baiduExpectFaceCompareScore);
             } else {
                 faceResult = faceVerifyService.faceCompareByFacePlus(new ImageTokenParm(student.getFaceToken()), imageParm);