BIP单据与获取token公用方法编写

This commit is contained in:
yuqh 2024-06-04 09:29:58 +08:00
parent cbbb2bdc35
commit 1fac2d06a3
1 changed files with 3 additions and 2 deletions
webapp/src/main/java/com/hzya/frame/webapp/entrance/controler

View File

@ -30,6 +30,7 @@ import org.springframework.web.multipart.MultipartFile;
import javax.annotation.Resource;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
@ -170,8 +171,8 @@ public class EntranceController {
}
@RequestMapping(value = "/erpSso")
@ResponseBody
public String erpSso(HttpServletResponse response, String ticket) throws Exception {
String indexUrl = bipSsoService.erpSso(ticket);
public String erpSso(HttpServletRequest request,HttpServletResponse response, String ticket) throws Exception {
String indexUrl = bipSsoService.erpSso(request,ticket);
response.sendRedirect(indexUrl);
// response.sendRedirect("https://www.sojson.com/aaa");
// response.sendRedirect("http://127.0.0.1:8888/nccloud/resources/uap/rbac/login/main/index.html");