mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-12 04:16:51 +08:00
添加日志
This commit is contained in:
@@ -100,8 +100,8 @@ public class CourseWareApi extends ApiBaseController {
|
|||||||
* @throws Exception
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
@GetMapping("/resource")
|
@GetMapping("/resource")
|
||||||
public JsonResponse<String> getVideo(HttpServletRequest request, HttpServletResponse response, String sign
|
public JsonResponse<String> getVideo(HttpServletRequest request, HttpServletResponse response, String sign,
|
||||||
// @CookieValue(name = "token",required = false)String token
|
@CookieValue(name = "token",required = false)String token
|
||||||
) throws Exception {
|
) throws Exception {
|
||||||
|
|
||||||
if (StringUtils.isBlank(sign)) {
|
if (StringUtils.isBlank(sign)) {
|
||||||
@@ -122,10 +122,10 @@ public class CourseWareApi extends ApiBaseController {
|
|||||||
if(!has) {
|
if(!has) {
|
||||||
return badRequest("页面不存在");
|
return badRequest("页面不存在");
|
||||||
}
|
}
|
||||||
String token = request.getHeader("Xboe-Access-Token");
|
// String token = request.getHeader("Xboe-Access-Token");
|
||||||
if (StringUtils.isEmpty(token)) {
|
// if (StringUtils.isEmpty(token)) {
|
||||||
token = request.getHeader("token");
|
// token = request.getHeader("token");
|
||||||
}
|
// }
|
||||||
// 读取cookies中的时间
|
// 读取cookies中的时间
|
||||||
// String cookieTime = getSignTimeCookie(request);
|
// String cookieTime = getSignTimeCookie(request);
|
||||||
// if (StringUtils.isBlank(cookieTime)) {
|
// if (StringUtils.isBlank(cookieTime)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user