Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SaToken增加webFlux框架下获取各类MediaType的body参数工具类 #685

Open
MrQiaoLei opened this issue Sep 22, 2024 · 2 comments
Open

Comments

@MrQiaoLei
Copy link

建议增加的新功能:

SaHolder.getRequest().getParamMap()能够获取get参数,是否能开发一个工具,能够实现获取各类MediaType的body参数,例如SaHolder.getRequest().getBodyMap()

应用场景阐述:

post请求验签时,获取参数进行验签比较方便。

@click33
Copy link
Collaborator

click33 commented Sep 22, 2024

你可以SaHolder.getRequest().getSource() 获取源对象然后手动读取

@MrQiaoLei
Copy link
Author

SaHolder.getRequest().getSource() 获取到的是ServerHttpRequest对象,各类MediaType的body 参数还是要自己单独去写很多代码进行判断。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants