From cbd5eab190a37b37014569d6d50912d345223bb7 Mon Sep 17 00:00:00 2001 From: ljl <17743125563@163.com> Date: Mon, 5 Aug 2024 14:10:01 +0800 Subject: [PATCH] fix locale base. --- backend/basic/src/rbum/helper/rbum_scope_helper.rs | 2 +- backend/services/bios-all/config/locale/zh-cn.basic | 2 +- backend/services/spi-all/config/locale/zh-cn.basic | 2 +- backend/services/spi-conf/config/locale/zh-cn.basic | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/basic/src/rbum/helper/rbum_scope_helper.rs b/backend/basic/src/rbum/helper/rbum_scope_helper.rs index 7417f530e..61067f02a 100644 --- a/backend/basic/src/rbum/helper/rbum_scope_helper.rs +++ b/backend/basic/src/rbum/helper/rbum_scope_helper.rs @@ -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) } diff --git a/backend/services/bios-all/config/locale/zh-cn.basic b/backend/services/bios-all/config/locale/zh-cn.basic index c23c784df..60075a4fb 100644 --- a/backend/services/bios-all/config/locale/zh-cn.basic +++ b/backend/services/bios-all/config/locale/zh-cn.basic @@ -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 条件检查时存在格式错误 diff --git a/backend/services/spi-all/config/locale/zh-cn.basic b/backend/services/spi-all/config/locale/zh-cn.basic index c23c784df..60075a4fb 100644 --- a/backend/services/spi-all/config/locale/zh-cn.basic +++ b/backend/services/spi-all/config/locale/zh-cn.basic @@ -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 条件检查时存在格式错误 diff --git a/backend/services/spi-conf/config/locale/zh-cn.basic b/backend/services/spi-conf/config/locale/zh-cn.basic index c23c784df..b272da78c 100644 --- a/backend/services/spi-conf/config/locale/zh-cn.basic +++ b/backend/services/spi-conf/config/locale/zh-cn.basic @@ -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 条件检查时存在格式错误