|
@@ -34,7 +34,6 @@ import cn.com.qmth.examcloud.exchange.outer.api.response.cug.SaveCugStudentAndEx
|
|
|
import cn.com.qmth.examcloud.exchange.outer.service.CourseGroupService;
|
|
|
import cn.com.qmth.examcloud.exchange.outer.service.FaceService;
|
|
|
import cn.com.qmth.examcloud.exchange.outer.service.bean.Course;
|
|
|
-import io.swagger.annotations.ApiOperation;
|
|
|
|
|
|
/**
|
|
|
* 中国地质大学(武汉)
|
|
@@ -67,7 +66,6 @@ public class CugOuterServiceProvider extends ControllerSupport implements CugOut
|
|
|
@Value("${$tempDir}")
|
|
|
private String tempDir;
|
|
|
|
|
|
- @ApiOperation(value = "保存考生信息")
|
|
|
@PostMapping("saveCugStudentAndExamStudent")
|
|
|
@Override
|
|
|
public SaveCugStudentAndExamStudentResp saveCugStudentAndExamStudent(
|
|
@@ -108,12 +106,14 @@ public class CugOuterServiceProvider extends ControllerSupport implements CugOut
|
|
|
|
|
|
int lastIndexOf = photoUrl.lastIndexOf(".");
|
|
|
if (0 > lastIndexOf) {
|
|
|
- throw new StatusException("EX-100002", "photoPath is not end with photo file suffix.");
|
|
|
+ throw new StatusException("EX-100002",
|
|
|
+ "photoPath is not end with photo file suffix.");
|
|
|
}
|
|
|
String fileSuffix = photoUrl.substring(lastIndexOf);
|
|
|
|
|
|
String fileName = identityNumber + fileSuffix;
|
|
|
- File temp = new File(tempDir + File.separator + "student_photo" + File.separator + fileName);
|
|
|
+ File temp = new File(
|
|
|
+ tempDir + File.separator + "student_photo" + File.separator + fileName);
|
|
|
|
|
|
try {
|
|
|
FileUtils.writeByteArrayToFile(temp, bs);
|