Skip to content

Commit

Permalink
fix locale base.
Browse files Browse the repository at this point in the history
  • Loading branch information
ljl committed Aug 5, 2024
1 parent b82057a commit cbd5eab
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion backend/basic/src/rbum/helper/rbum_scope_helper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ where
#[cfg(feature = "default")]
pub fn check_without_owner_and_unsafe_fill_ctx(request: &tardis::web::poem::Request, funs: &TardisFunsInst, ctx: &mut TardisContext) -> TardisResult<()> {
if ctx.ak.is_empty() {
return Err(TardisError::forbidden("[Basic] Request context owner is not empty", "403-rbum-req-ctx-owner-is-not-empty"));
return Err(TardisError::forbidden("[Basic] Request contex ak is not empty", "403-rbum-req-ctx-ak-is-not-empty"));
}
unsafe_fill_ctx(request, funs, ctx)
}
Expand Down
2 changes: 1 addition & 1 deletion backend/services/bios-all/config/locale/zh-cn.basic
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@

404-rbum-req-ctx-not-exist 请求上下文不存在或不完整
401-rbum-req-ctx-permission-denied 请求上下文权限不合法
403-rbum-req-ctx-owner-is-not-empty 请求下文中不能存在所有者
403-rbum-req-ctx-ak-is-not-empty 请求下文中不存在ak

400-basic-cond-check-format-err 条件检查时存在格式错误

Expand Down
2 changes: 1 addition & 1 deletion backend/services/spi-all/config/locale/zh-cn.basic
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@

404-rbum-req-ctx-not-exist 请求上下文不存在或不完整
401-rbum-req-ctx-permission-denied 请求上下文权限不合法
403-rbum-req-ctx-owner-is-not-empty 请求下文中不能存在所有者
403-rbum-req-ctx-ak-is-not-empty 请求下文中不存在ak

400-basic-cond-check-format-err 条件检查时存在格式错误

Expand Down
2 changes: 1 addition & 1 deletion backend/services/spi-conf/config/locale/zh-cn.basic
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@

404-rbum-req-ctx-not-exist 请求上下文不存在或不完整
401-rbum-req-ctx-permission-denied 请求上下文权限不合法
403-rbum-req-ctx-owner-is-not-empty 请求下文中不能存在所有者
403-rbum-req-ctx-ak-is-not-empty 请求下文中不能存在ak

400-basic-cond-check-format-err 条件检查时存在格式错误

Expand Down

0 comments on commit cbd5eab

Please sign in to comment.