vod普通加密
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user