|
@@ -22,9 +22,6 @@ import cn.com.qmth.examcloud.commons.base.util.ZipUtil;
|
|
|
import cn.com.qmth.examcloud.commons.web.security.bean.User;
|
|
|
import cn.com.qmth.examcloud.commons.web.support.ControllerSupport;
|
|
|
import cn.com.qmth.examcloud.exchange.outer.service.FaceppService;
|
|
|
-import cn.com.qmth.examcloud.exchange.outer.service.client.ExamStudentClient;
|
|
|
-import cn.com.qmth.examcloud.exchange.outer.service.client.StudentFaceInfoClient;
|
|
|
-import cn.com.qmth.examcloud.exchange.outer.service.impl.UpyunServiceImpl;
|
|
|
|
|
|
/**
|
|
|
* 学生照片接口
|
|
@@ -43,28 +40,14 @@ public class FaceppController extends ControllerSupport {
|
|
|
*/
|
|
|
private static final int ZIP_MAX_SIZE = 50;
|
|
|
|
|
|
- /**
|
|
|
- * 最大张数500张
|
|
|
- */
|
|
|
- private static final int MAX_COUNT = 500;
|
|
|
-
|
|
|
/**
|
|
|
* 每张照片最大尺寸 500KB
|
|
|
*/
|
|
|
private static final int MAX_SIZE = 500;
|
|
|
|
|
|
- @Autowired
|
|
|
- private ExamStudentClient examStudentClient;
|
|
|
-
|
|
|
- @Autowired
|
|
|
- private UpyunServiceImpl upyunService;
|
|
|
-
|
|
|
@Autowired
|
|
|
private FaceppService faceppService;
|
|
|
|
|
|
- @Autowired
|
|
|
- private StudentFaceInfoClient studentFaceInfoClient;
|
|
|
-
|
|
|
/**
|
|
|
* 重构
|
|
|
*
|
|
@@ -150,6 +133,8 @@ public class FaceppController extends ControllerSupport {
|
|
|
ret.add(map);
|
|
|
}
|
|
|
|
|
|
+ tempDir.delete();
|
|
|
+
|
|
|
return ret;
|
|
|
}
|
|
|
|