Browse Source

第三方添加江宁大数据局

release_hzx
蚂蚁哥 5 months ago
parent
commit
41285dbc3c
1 changed files with 10 additions and 2 deletions
  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 View File

package com.tuoheng.controller; package com.tuoheng.controller;


import com.alibaba.druid.util.StringUtils;
import com.tuoheng.service.ThirdService; import com.tuoheng.service.ThirdService;
import com.tuoheng.until.JsonResult; import com.tuoheng.until.JsonResult;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
*/ */
@CrossOrigin(origins = "https://airport.t-aaron.com") @CrossOrigin(origins = "https://airport.t-aaron.com")
@GetMapping(value = "/redirect") @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"); log.info("访问airport");
// resp.sendRedirect("https://airport.t-aaron.com/transfer"); // 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);
}


} }


/** /**

Loading…
Cancel
Save