vod普通加密

This commit is contained in:
wangjinlei
2024-07-29 09:19:30 +08:00
parent 9a594b8cc8
commit d78551efc3
5 changed files with 42 additions and 10 deletions

View File

@@ -26,6 +26,7 @@ import org.springframework.web.bind.annotation.RestController;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;
@Slf4j
@@ -180,10 +181,15 @@ public class CourseController {
}
@RequestMapping("/saveCoursePosition")
public R saveCoursePosition(@RequestBody Map<String,Integer> map){
public R saveCoursePosition(@RequestBody Map<String,Object> map){
Integer uId = ShiroUtils.getUId();
Integer videoId = map.get("videoId");
Integer position = map.get("position");
Integer videoId = Integer.valueOf(map.get("videoId").toString());
String po = map.get("position").toString();
if(Objects.equals(po, "none")){
return R.ok();
}
int position = Integer.valueOf(po);
courseCatalogueChapterVideoService.saveCoursePosition(uId,videoId,position);
return R.ok();
}