wps保存回调
This commit is contained in:
@ -148,18 +148,20 @@ public class WpsController {
|
||||
String str = this.wpsService.getKSWpsUrl(in);
|
||||
try {
|
||||
String token = userToken;
|
||||
Optional<Cookie> optionalCookie = Optional.ofNullable(request.getCookies())
|
||||
.flatMap(cookies ->
|
||||
Stream.of(cookies)
|
||||
.filter(item -> StringUtils.equals(item.getName(), COOKIE_TOKEN_CODE))
|
||||
.findFirst());
|
||||
// Optional<Cookie> optionalCookie = Optional.ofNullable(request.getCookies())
|
||||
// .flatMap(cookies ->
|
||||
// Stream.of(cookies)
|
||||
// .filter(item -> StringUtils.equals(item.getName(), COOKIE_TOKEN_CODE))
|
||||
// .findFirst());
|
||||
//
|
||||
// if (optionalCookie.isPresent()) {
|
||||
// token = optionalCookie.get().getValue();
|
||||
// log.info("cookie:",token);
|
||||
// }else{
|
||||
// log.error("未获取到cookie");
|
||||
// }
|
||||
|
||||
if (optionalCookie.isPresent()) {
|
||||
token = optionalCookie.get().getValue();
|
||||
log.info("cookie:",token);
|
||||
}else{
|
||||
log.error("未获取到cookie");
|
||||
}
|
||||
|
||||
response.setContentType("text/html;charset=utf-8");
|
||||
PrintWriter out = response.getWriter();
|
||||
|
Reference in New Issue
Block a user