|
@@ -10,7 +10,7 @@ package cn.com.qmth.examcloud.app.controller;
|
|
import cn.com.qmth.examcloud.app.model.Result;
|
|
import cn.com.qmth.examcloud.app.model.Result;
|
|
import cn.com.qmth.examcloud.app.service.CoreOeService;
|
|
import cn.com.qmth.examcloud.app.service.CoreOeService;
|
|
import cn.com.qmth.examcloud.app.service.CoreQuestionService;
|
|
import cn.com.qmth.examcloud.app.service.CoreQuestionService;
|
|
-import cn.com.qmth.examcloud.app.service.UpYunService;
|
|
|
|
|
|
+import cn.com.qmth.examcloud.app.service.FileService;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiParam;
|
|
import io.swagger.annotations.ApiParam;
|
|
@@ -46,7 +46,7 @@ public class OfflineExamController {
|
|
@Autowired
|
|
@Autowired
|
|
private CoreQuestionService questionService;
|
|
private CoreQuestionService questionService;
|
|
@Autowired
|
|
@Autowired
|
|
- private UpYunService upYunService;
|
|
|
|
|
|
+ private FileService fileService;
|
|
|
|
|
|
@ResponseBody
|
|
@ResponseBody
|
|
@ApiOperation(value = "获取当前用户参加的离线课程列表接口")
|
|
@ApiOperation(value = "获取当前用户参加的离线课程列表接口")
|
|
@@ -111,7 +111,7 @@ public class OfflineExamController {
|
|
@ApiOperation(value = "下载已上传的“作答文件”接口")
|
|
@ApiOperation(value = "下载已上传的“作答文件”接口")
|
|
@RequestMapping(value = "/paper/answer/download", method = {RequestMethod.GET})
|
|
@RequestMapping(value = "/paper/answer/download", method = {RequestMethod.GET})
|
|
public String downloadPaperAnswer(@RequestParam String filePath) throws Exception {
|
|
public String downloadPaperAnswer(@RequestParam String filePath) throws Exception {
|
|
- String requestUrl = "redirect:" + upYunService.downloadPaperAnswer(filePath);
|
|
|
|
|
|
+ String requestUrl = "redirect:" + fileService.downloadPaperAnswer(filePath);
|
|
LOG.debug(requestUrl);
|
|
LOG.debug(requestUrl);
|
|
return requestUrl;
|
|
return requestUrl;
|
|
}
|
|
}
|