Pārlūkot izejas kodu

第三方添加江宁大数据局

release_hzx
蚂蚁哥 pirms 5 mēnešiem
vecāks
revīzija
41285dbc3c
1 mainītis faili ar 10 papildinājumiem un 2 dzēšanām
  1. +10
    -2
      tuoheng_oidc_server/src/main/java/com/tuoheng/controller/ThirdController.java

+ 10
- 2
tuoheng_oidc_server/src/main/java/com/tuoheng/controller/ThirdController.java Parādīt failu

@@ -1,5 +1,6 @@
package com.tuoheng.controller;

import com.alibaba.druid.util.StringUtils;
import com.tuoheng.service.ThirdService;
import com.tuoheng.until.JsonResult;
import lombok.extern.slf4j.Slf4j;
@@ -43,10 +44,17 @@ public class ThirdController {
*/
@CrossOrigin(origins = "https://airport.t-aaron.com")
@GetMapping(value = "/redirect")
public void airportRedirect(HttpServletRequest req, HttpServletResponse resp) throws Exception {
public void airportRedirect(HttpServletRequest req, HttpServletResponse resp,String userName) throws Exception {
log.info("访问airport");
// resp.sendRedirect("https://airport.t-aaron.com/transfer");
resp.sendRedirect("https://airport-test.t-aaron.com/transfer");

if(StringUtils.isEmpty(userName)){
resp.sendRedirect("https://airport-test.t-aaron.com/transfer");
}else{
resp.sendRedirect("https://airport-test.t-aaron.com/transfer?userName="+userName);
}


}

/**

Notiek ielāde…
Atcelt
Saglabāt