|
@@ -164,6 +164,7 @@ public class CollectApi {
|
|
return list;
|
|
return list;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @CrossOrigin(maxAge = 3600) //支持跨域
|
|
@RequestMapping(value = "upload/student/{subjectId}", method = RequestMethod.POST)
|
|
@RequestMapping(value = "upload/student/{subjectId}", method = RequestMethod.POST)
|
|
public List<CollectStuDTO> saveStudent(HttpServletRequest request, @PathVariable Integer subjectId,
|
|
public List<CollectStuDTO> saveStudent(HttpServletRequest request, @PathVariable Integer subjectId,
|
|
@RequestBody CollectStuDTO[] uploadStudentArray) throws Exception {
|
|
@RequestBody CollectStuDTO[] uploadStudentArray) throws Exception {
|
|
@@ -437,6 +438,7 @@ public class CollectApi {
|
|
* @param response
|
|
* @param response
|
|
* @throws Exception
|
|
* @throws Exception
|
|
*/
|
|
*/
|
|
|
|
+ @CrossOrigin(maxAge = 3600) //支持跨域
|
|
@RequestMapping(value = "file/ms-slice/{workId}/{subjectId}", method = {RequestMethod.PUT, RequestMethod.POST})
|
|
@RequestMapping(value = "file/ms-slice/{workId}/{subjectId}", method = {RequestMethod.PUT, RequestMethod.POST})
|
|
public void upload(@PathVariable Long workId, @PathVariable Integer subjectId,
|
|
public void upload(@PathVariable Long workId, @PathVariable Integer subjectId,
|
|
@RequestParam MultipartFile file,
|
|
@RequestParam MultipartFile file,
|
|
@@ -592,6 +594,7 @@ public class CollectApi {
|
|
* @param workId
|
|
* @param workId
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
|
|
+ @CrossOrigin(maxAge = 3600) //支持跨域
|
|
@RequestMapping(value = "oss/upload/{workId}", method = RequestMethod.GET)
|
|
@RequestMapping(value = "oss/upload/{workId}", method = RequestMethod.GET)
|
|
public boolean ossUpload(@PathVariable Long workId) {
|
|
public boolean ossUpload(@PathVariable Long workId) {
|
|
try {
|
|
try {
|