Ver Fonte

清理无用代码

deason há 6 anos atrás
pai
commit
58ca99fbce

+ 1 - 6
src/main/java/cn/com/qmth/examcloud/app/controller/PracticeExamRestController.java

@@ -103,12 +103,6 @@ public class PracticeExamRestController {
         return netExamService.checkOnlineExamRecord(key, token);
     }
 
-    @ApiOperation(value = "获取当前考生的当前课程练习统计信息接口", hidden = true)
-    @RequestMapping(value = "/exam/record/practice/course/total", method = {RequestMethod.GET, RequestMethod.POST})
-    public Result getExamRecordPracticeTotalInfo(@RequestHeader(name = PARAM_APP_KEY) String key, @RequestHeader(name = PARAM_APP_TOKEN) String token, @RequestParam String examStudentId) throws Exception {
-        return netExamService.getExamRecordPracticeTotalInfo(key, token, examStudentId);
-    }
-
     @ApiOperation(value = "获取当前考生的当前课程的历史练习记录接口")
     @RequestMapping(value = "/exam/record/practice/course/history/list", method = {RequestMethod.GET, RequestMethod.POST})
     public Result getExamRecordPracticeHistoryList(@RequestHeader(name = PARAM_APP_KEY) String key, @RequestHeader(name = PARAM_APP_TOKEN) String token, @RequestParam String examStudentId) throws Exception {
@@ -175,4 +169,5 @@ public class PracticeExamRestController {
     public Result getUpLoadType(@RequestHeader(name = PARAM_APP_KEY) String key, @RequestHeader(name = PARAM_APP_TOKEN) String token, @PathVariable Long examId) throws Exception {
         return examAdminService.getUpLoadType(key, token, examId);
     }
+
 }

+ 0 - 12
src/main/java/cn/com/qmth/examcloud/app/service/NetExamService.java

@@ -157,18 +157,6 @@ public interface NetExamService {
      */
     Result checkOnlineExamRecord(String key, String token) throws Exception;
 
-    /**
-     * 获取当前考生的当前课程练习统计信息
-     *
-     * @param key
-     * @param token
-     * @param examStudentId
-     * @return
-     * @throws Exception
-     */
-    @Deprecated
-    Result getExamRecordPracticeTotalInfo(String key, String token, String examStudentId) throws Exception;
-
     /**
      * 获取当前考生的当前课程的历史练习记录
      *

+ 0 - 11
src/main/java/cn/com/qmth/examcloud/app/service/UserAuthService.java

@@ -43,17 +43,6 @@ public interface UserAuthService {
      */
     Result logout(String key, String token) throws Exception;
 
-    /**
-     * 获取用户信息
-     *
-     * @param key
-     * @param token
-     * @return
-     * @throws Exception
-     */
-    @Deprecated
-    Result getUserInfo(String key, String token) throws Exception;
-
     /**
      * 修改密码
      *

+ 0 - 7
src/main/java/cn/com/qmth/examcloud/app/service/impl/NetExamServiceImpl.java

@@ -163,13 +163,6 @@ public class NetExamServiceImpl implements NetExamService {
         return HttpUtils.doGet(requestUrl, key, token);
     }
 
-    @Override
-    public Result getExamRecordPracticeTotalInfo(String key, String token, String examStudentId) throws Exception {
-        //封装请求参数
-        final String requestUrl = String.format("%s/api/practice_course/%s", propertyService.getNetExamUrl(), examStudentId);
-        return HttpUtils.doGet(requestUrl, key, token);
-    }
-
     @Override
     public Result getExamRecordPracticeHistoryList(String key, String token, String examStudentId) throws Exception {
         //封装请求参数

+ 1 - 12
src/main/java/cn/com/qmth/examcloud/app/service/impl/UserAuthServiceImpl.java

@@ -63,7 +63,7 @@ public class UserAuthServiceImpl implements UserAuthService {
         }
 
         //封装请求参数
-        final String requestUrl = String.format("%s/api/core/oe/student/examRecord/getStudentOnLineExamInfo", propertyService.getNetExamUrl());
+        final String requestUrl = String.format("%s/api/ecs_oe_student/examControl/getStudentOnLineExamInfo", propertyService.getNetExamUrl());
         try {
             //执行请求
             Request request = new Request.Builder()
@@ -136,17 +136,6 @@ public class UserAuthServiceImpl implements UserAuthService {
         return HttpUtils.doPost(requestUrl, formBody, key, token);
     }
 
-    @Override
-    public Result getUserInfo(String key, String token) throws Exception {
-        //封装请求参数
-        final String requestUrl = String.format("%s/api/ecs_core/auth/getLoginUser", propertyService.getUserAuthUrl());
-        RequestBody formBody = new FormBody.Builder()
-                .add(PARAM_KEY, key)
-                .add(PARAM_TOKEN, token)
-                .build();
-        return HttpUtils.doPost(requestUrl, formBody, key, token);
-    }
-
     @Override
     public Result updateStudentPassword(String key, String token, Long studentId, String password, String newPassword) throws Exception {
         Assert.notNull(studentId, "StudentId must be not null.");