新增:操作日志旧数据适配

This commit is contained in:
2024-08-20 16:32:19 +08:00
parent b7aa1e51b3
commit 854df00ffb
2 changed files with 49 additions and 1 deletions

View File

@@ -11,7 +11,7 @@ json.user do
end
if journal.is_journal_detail?
detail = journal.journal_details.take
json.operate_category detail.property == "attr" ? detail.prop_key : detail.property
json.operate_category journal.pm_operate_category
json.operate_content journal.is_journal_detail? ? journal.pm_operate_content : nil
else
json.notes journal.notes