deason 1 rok temu
rodzic
commit
40abb50f71

+ 3 - 8
examcloud-core-questions-api-provider/src/main/java/cn/com/qmth/examcloud/core/questions/api/controller/ExtractConfigController.java

@@ -15,13 +15,7 @@ import org.springframework.data.domain.Page;
 import org.springframework.http.HttpStatus;
 import org.springframework.http.ResponseEntity;
 import org.springframework.stereotype.Controller;
-import org.springframework.web.bind.annotation.GetMapping;
-import org.springframework.web.bind.annotation.PathVariable;
-import org.springframework.web.bind.annotation.PostMapping;
-import org.springframework.web.bind.annotation.PutMapping;
-import org.springframework.web.bind.annotation.RequestBody;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.*;
 
 import cn.com.qmth.examcloud.api.commons.enums.AdminOperateType;
 import cn.com.qmth.examcloud.api.commons.enums.CallType;
@@ -375,7 +369,8 @@ public class ExtractConfigController extends ControllerSupport {
 		String answerHtml = extractConfigService.getAnswerHtml(paperId);
 		return new ResponseEntity<>(answerHtml, HttpStatus.OK);
 	}
-	
+
+	@ResponseBody
 	@ApiOperation("随机抽卷调卷规则创建")
     @PostMapping("extract_config/randompaper/save")
 	public void saveRandomPaperExtractConfig(@RequestBody SaveRandomPaperExtractConfigDomain req) {