新增:转账记录使用json builder以及贡献者新增贡献占比

This commit is contained in:
2023-03-08 11:05:24 +08:00
parent 90773483b8
commit 47a8f17073
6 changed files with 12 additions and 8 deletions

View File

@@ -20,7 +20,7 @@ class Blockchain::BalanceQuery < ApplicationQuery
if owner.nil? || project.nil?
else
balance = t['balance']
result_list << [owner, project, balance]
result_list << {project: project, balance: balance}
end
end
results = {"status": 0, "projects": result_list}