mirror of
https://gitee.com/dromara/sa-token.git
synced 2025-08-25 01:14:23 +08:00
update sa-token-doc/doc/up/safe-auth.md.
完全相反的逻辑bug
This commit is contained in:
parent
8f817eadc0
commit
2457bc4bf9
@ -57,7 +57,7 @@ public String add() {
|
||||
@RequestMapping("deleteProject")
|
||||
public SaResult deleteProject(String projectId) {
|
||||
// 第1步,先检查当前会话是否已完成二级认证
|
||||
if(StpUtil.isSafe()) {
|
||||
if(!StpUtil.isSafe()) {
|
||||
return SaResult.error("请完成二级认证后再次访问接口");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user