|
|
@@ -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); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
/** |