|
@@ -58,7 +58,7 @@ public class OfflineExamController {
|
|
|
|
|
|
@ResponseBody
|
|
@ResponseBody
|
|
@ApiOperation(value = "上传作答文件接口")
|
|
@ApiOperation(value = "上传作答文件接口")
|
|
- @RequestMapping(value = "/paper/answer/upload", method = {RequestMethod.GET, RequestMethod.POST})
|
|
|
|
|
|
+ @RequestMapping(value = "/paper/answer/upload", method = {RequestMethod.POST})
|
|
public Result uploadPaperAnswer(@RequestHeader String key, @RequestHeader String token, @RequestParam String examRecordId,
|
|
public Result uploadPaperAnswer(@RequestHeader String key, @RequestHeader String token, @RequestParam String examRecordId,
|
|
@RequestParam(required = false) String md5, HttpServletRequest request) throws Exception {
|
|
@RequestParam(required = false) String md5, HttpServletRequest request) throws Exception {
|
|
MultipartFile multipart = null;
|
|
MultipartFile multipart = null;
|
|
@@ -81,16 +81,16 @@ public class OfflineExamController {
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "下载考题接口")
|
|
@ApiOperation(value = "下载考题接口")
|
|
- @RequestMapping(value = "/paper/download", method = {RequestMethod.GET, RequestMethod.POST})
|
|
|
|
- public String downloadPaper(@RequestHeader String key, @RequestHeader String token, @RequestParam String paperId, @RequestParam String orgName) throws Exception {
|
|
|
|
|
|
+ @RequestMapping(value = "/paper/download", method = {RequestMethod.GET})
|
|
|
|
+ public String downloadPaper(@RequestParam String paperId, @RequestParam String orgName) throws Exception {
|
|
String requestUrl = "redirect:" + questionPoolService.downloadPaper(paperId, orgName);
|
|
String requestUrl = "redirect:" + questionPoolService.downloadPaper(paperId, orgName);
|
|
log.debug(requestUrl);
|
|
log.debug(requestUrl);
|
|
return requestUrl;
|
|
return requestUrl;
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "下载已上传的“作答文件”接口")
|
|
@ApiOperation(value = "下载已上传的“作答文件”接口")
|
|
- @RequestMapping(value = "/paper/answer/download", method = {RequestMethod.GET, RequestMethod.POST})
|
|
|
|
- public String downloadPaperAnswer(@RequestHeader String key, @RequestHeader String token, @RequestParam String filePath) throws Exception {
|
|
|
|
|
|
+ @RequestMapping(value = "/paper/answer/download", method = {RequestMethod.GET})
|
|
|
|
+ public String downloadPaperAnswer(@RequestParam String filePath) throws Exception {
|
|
String requestUrl = "redirect:" + upYunService.downloadPaperAnswer(filePath);
|
|
String requestUrl = "redirect:" + upYunService.downloadPaperAnswer(filePath);
|
|
log.debug(requestUrl);
|
|
log.debug(requestUrl);
|
|
return requestUrl;
|
|
return requestUrl;
|