派生自 projectDept/qhighschool

EricsHu
2023-11-25 79ab2cbd31c022916a8e696903d5eb34b70aa403
src/main/java/com/qxueyou/scc/stucontroller/HomePageController.java
@@ -60,9 +60,10 @@
   @ApiOperation(value = "首页获取我的上次学习")
   @GetMapping(value = "getLastStudied")
   public Result getLastSubject(String subjectId, HttpServletRequest request) {
      Object userId = request.getSession().getAttribute("userId");
//      Object userId = request.getSession().getAttribute("userId");
      String userId = (String) request.getSession().getAttribute("userId");
      System.out.println(userId);
      return subjectService.lastStudied(String.valueOf(userId));
      return subjectService.lastStudied(userId);
   }
   /**