he2802 2 years ago
parent
commit
93108e8b8e

+ 10 - 0
zhongzheng-api/src/main/java/com/zhongzheng/controller/polyv/PolyvVideoController.java

@@ -57,4 +57,14 @@ public class PolyvVideoController extends BaseController {
         map.put("uid","egsxlptzdq");
         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);
+    }
 }