|
@@ -16,6 +16,8 @@ import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
import java.io.IOException;
|
|
|
+import java.security.KeyManagementException;
|
|
|
+import java.security.NoSuchAlgorithmException;
|
|
|
|
|
|
/**
|
|
|
* <p>
|
|
@@ -49,7 +51,7 @@ public class DataDockingController {
|
|
|
@RequestMapping(value = "/course", method = RequestMethod.GET)
|
|
|
@ApiResponses({@ApiResponse(code = 200, message = "返回数据", response = ZufeCourseResult.class)})
|
|
|
@Aac(auth = false)
|
|
|
- public Result course(@ApiParam(value = "access_token", required = true) @RequestParam String accessToken) throws IOException {
|
|
|
+ public Result course(@ApiParam(value = "access_token", required = true) @RequestParam String accessToken) throws IOException, NoSuchAlgorithmException, KeyManagementException {
|
|
|
zufeDataDockingUtil.course(accessToken);
|
|
|
return ResultUtil.ok(true);
|
|
|
}
|
|
@@ -59,7 +61,7 @@ public class DataDockingController {
|
|
|
@RequestMapping(value = "/exam", method = RequestMethod.GET)
|
|
|
@ApiResponses({@ApiResponse(code = 200, message = "返回数据", response = ZufeExamResult.class)})
|
|
|
@Aac(auth = false)
|
|
|
- public Result exam(@ApiParam(value = "access_token", required = true) @RequestParam String accessToken) throws IOException {
|
|
|
+ public Result exam(@ApiParam(value = "access_token", required = true) @RequestParam String accessToken) throws IOException, NoSuchAlgorithmException, KeyManagementException {
|
|
|
zufeDataDockingUtil.exam(accessToken);
|
|
|
return ResultUtil.ok(true);
|
|
|
}
|