|
@@ -57,4 +57,14 @@ public class PolyvVideoController extends BaseController {
|
|
map.put("uid","egsxlptzdq");
|
|
map.put("uid","egsxlptzdq");
|
|
return AjaxResult.success(map);
|
|
return AjaxResult.success(map);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ @ApiOperation("获取保利威PC视频播放凭证")
|
|
|
|
+ @PreAuthorize("@ss.hasPermi('modules.polyv:video:query')")
|
|
|
|
+ @GetMapping("/sign/pc/{vid}")
|
|
|
|
+ public AjaxResult<String> getPlayPcSign(@PathVariable("vid") String vid) throws Exception {
|
|
|
|
+ ClientLoginUser loginUser = wxTokenService.getLoginUser(ServletUtils.getRequest());
|
|
|
|
+ String viewerId = String.valueOf(loginUser.getUser().getUserId());
|
|
|
|
+ String token = iPolyvVideoService.polyvbPcSignRequest(vid,viewerId);
|
|
|
|
+ return AjaxResult.success("成功",token);
|
|
|
|
+ }
|
|
}
|
|
}
|