Skip to content

Commit

Permalink
fix-UserInfoController-新增用户时前端写入b_user=true导致数据打架的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
aruis committed Dec 25, 2024
1 parent 2a9de06 commit 4b2c593
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ public String getMainTable() {
@Override
public void beforeCreate(Map body) {
super.beforeCreate(body);
body.put("b_user", false);
if (body.get("b_user") instanceof Boolean bUser && bUser) {
throw new MyException("新增用户 b_user 不允许为真");
}
}

@Override
Expand Down

0 comments on commit 4b2c593

Please sign in to comment.