|
@@ -423,15 +423,6 @@ public class MirrorController {
|
|
|
public Result<String> lumaRedirect(@PathVariable Long relationId) {
|
|
public Result<String> lumaRedirect(@PathVariable Long relationId) {
|
|
|
Long userId = StpUserUtil.getLoginIdAsLong();
|
|
Long userId = StpUserUtil.getLoginIdAsLong();
|
|
|
LumaUser lumaUser = lumaService.getLumaUser(userId, relationId);
|
|
LumaUser lumaUser = lumaService.getLumaUser(userId, relationId);
|
|
|
- return GatewayResponse.SUCCESS.newBuilder().toResult(lumaHost + (EnvCommonService.active_pre.equals(envCommonService.getEnv()) ? "/8083":"/8084") +"/api/applets/mirror/lumaWithToken/" + lumaUser.getUserToken());
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- @GetMapping("/lumaWithToken/{userToken}")
|
|
|
|
|
- public void lumaWithToken(@PathVariable String userToken) throws IOException {
|
|
|
|
|
- Cookie cookie = new Cookie("userToken", userToken);
|
|
|
|
|
- cookie.setMaxAge(31536000);
|
|
|
|
|
- cookie.setPath("/");
|
|
|
|
|
- response.addCookie(cookie);
|
|
|
|
|
- response.sendRedirect(lumaVideoUrl);
|
|
|
|
|
|
|
+ return GatewayResponse.SUCCESS.newBuilder().toResult(lumaHost + (EnvCommonService.active_pre.equals(envCommonService.getEnv()) ? "/8083":"/8084") +"/api/applets/luma/lumaMirrorWithToken/" + lumaUser.getUserToken());
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|