Skip to content

Commit

Permalink
Optimize some code.
Browse files Browse the repository at this point in the history
  • Loading branch information
gudaoxuri committed Apr 9, 2024
1 parent 9ba6d77 commit adff93a
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion backend/basic/src/process/task_processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ impl TaskProcessor {
Some(handle) => {
handle.abort();
}
None => return Err(TardisError::bad_request("task not found,may task is end", "400-stop-task-error")),
None => return Err(TardisError::bad_request("task not found,may task is end", "400-task-stop-error")),
}
}
match TaskProcessor::set_status_with_event(cache_key, task_id, true, cache_client, ws_client, from_avatar, to_avatars).await {
Expand Down
5 changes: 3 additions & 2 deletions backend/services/bios-all/config/locale/zh-cn.basic
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
409-rbum-*-delete-conflict 不能删除存在关联记录的数据
409-iam-delete-conflict 不能删除存在关联记录的数据
404-rbum-*-obj-not-exist 找不到指定的数据
409-rbum-*-obj-multi-exist 找到多条相同的数据
400-rbum-*-code-illegal 无效的编码
Expand Down Expand Up @@ -53,4 +52,6 @@
403-rbum-req-ctx-owner-is-not-empty 请求下文中不能存在所有者

400-basic-cond-check-format-err 条件检查时存在格式错误
400-stop-task-error 任务可能已经结束

400-task-stop-error 任务可能已经结束
400-task-id-too-large 任务ID过大
1 change: 1 addition & 0 deletions backend/services/bios-all/config/locale/zh-cn.iam
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
406-iam-ldap-addr-error LDAP服务地址格式错误
400-iam-account-field-missing 缺少必填字段信息
409-iam-delete-conflict 不能删除存在关联记录的数据

409-iam-current-can-not-account-delete 登录人无法删除自己的账号

Expand Down
5 changes: 3 additions & 2 deletions backend/services/spi-all/config/locale/zh-cn.basic
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
409-rbum-*-delete-conflict 不能删除存在关联记录的数据
409-iam-delete-conflict 不能删除存在关联记录的数据
404-rbum-*-obj-not-exist 找不到指定的数据
409-rbum-*-obj-multi-exist 找到多条相同的数据
400-rbum-*-code-illegal 无效的编码
Expand Down Expand Up @@ -53,4 +52,6 @@
403-rbum-req-ctx-owner-is-not-empty 请求下文中不能存在所有者

400-basic-cond-check-format-err 条件检查时存在格式错误
400-stop-task-error 任务可能已经结束

400-task-stop-error 任务可能已经结束
400-task-id-too-large 任务ID过大
5 changes: 3 additions & 2 deletions backend/services/spi-conf/config/locale/zh-cn.basic
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
409-rbum-*-delete-conflict 不能删除存在关联记录的数据
409-iam-delete-conflict 不能删除存在关联记录的数据
404-rbum-*-obj-not-exist 找不到指定的数据
409-rbum-*-obj-multi-exist 找到多条相同的数据
400-rbum-*-code-illegal 无效的编码
Expand Down Expand Up @@ -53,4 +52,6 @@
403-rbum-req-ctx-owner-is-not-empty 请求下文中不能存在所有者

400-basic-cond-check-format-err 条件检查时存在格式错误
400-stop-task-error 任务可能已经结束

400-task-stop-error 任务可能已经结束
400-task-id-too-large 任务ID过大

0 comments on commit adff93a

Please sign in to comment.