|
|
@@ -642,7 +642,7 @@ public class MirrorController {
|
|
|
* nano车票跳转登录
|
|
|
*/
|
|
|
@GetMapping("/nanoUser/{relationId}")
|
|
|
- public void nanoUserWithTokenRedirect(String domain, @PathVariable Long relationId) throws IOException {
|
|
|
+ public Result<String> nanoUserWithTokenRedirect(String domain, @PathVariable Long relationId) throws IOException {
|
|
|
Long userId = StpUserUtil.getLoginIdAsLong();
|
|
|
NanoUserQuota nanoUserQuota = nanoUserQuotaService.getNanoUser(userId, relationId);
|
|
|
String DOMAIN = domain;
|
|
|
@@ -660,7 +660,7 @@ public class MirrorController {
|
|
|
log.error("nano随机抽取域名错误. msg:{}", StringUtil.getErrorText(e));
|
|
|
}
|
|
|
}
|
|
|
- response.sendRedirect(DOMAIN + "/login?usertoken=" + nanoUserQuota.getUserToken());
|
|
|
+ return GatewayResponse.SUCCESS.newBuilder().toResult((DOMAIN + "/login?usertoken=" + nanoUserQuota.getUserToken()));
|
|
|
}
|
|
|
|
|
|
}
|