|
|
@@ -305,7 +305,7 @@ public class MirrorController {
|
|
|
* @param relationId 车票id
|
|
|
*/
|
|
|
@GetMapping("/midjourneyMirror/{relationId}")
|
|
|
- public Result<String> midjourneyMirror(@PathVariable Long relationId) throws IOException {
|
|
|
+ public void midjourneyMirror(@PathVariable Long relationId) throws IOException {
|
|
|
Long userId = StpUserUtil.getLoginIdAsLong();
|
|
|
String userToken = midjourneyAccountService.getMidjourneyUserToken(userId, relationId);
|
|
|
Cookie cookie = new Cookie("userToken", userToken);
|
|
|
@@ -313,6 +313,5 @@ public class MirrorController {
|
|
|
cookie.setPath("/");
|
|
|
response.addCookie(cookie);
|
|
|
response.sendRedirect(midjourneyHost+"/draw/web/");
|
|
|
- return GatewayResponse.SUCCESS.newBuilder().toResult(userToken);
|
|
|
}
|
|
|
}
|