|
|
@@ -149,11 +149,12 @@ public class ProjectServiceImpl implements ProjectService {
|
|
|
CourseProject courseProject = courseProjectRepository.findById(projectId)
|
|
|
.orElseThrow(CustomErrorException::courseProjectNotFound);
|
|
|
if (!courseProject.getPublic()) {throw CustomErrorException.courseSelectionNotFound();}
|
|
|
- log.info("PROJECT VISIBILITY: {}", devcloudService.getProjectVisibility(projectId));
|
|
|
+ //log.info("PROJECT VISIBILITY: {}", devcloudService.getProjectVisibility(projectId));
|
|
|
// 验证当前用户已选课
|
|
|
if (!courseService.checkSelection(SecurityUtils.getCurrentUser().getId(), courseProject.getCourse().getId())) {
|
|
|
throw CustomErrorException.unauthorizedUser();
|
|
|
}
|
|
|
+ log.info("ready to fork");
|
|
|
JSONObject devcloudResult = devcloudService.forkProject(projectId, name);
|
|
|
log.info("devcloudService.forkProject: {}", devcloudResult);
|
|
|
CourseProject forkCourseProject = new CourseProject();
|