新增:贡献占比需增加项目是否开启确权机制

This commit is contained in:
yystopf 2023-03-08 11:22:34 +08:00
parent 47a8f17073
commit b0e117b065
1 changed files with 4 additions and 1 deletions

View File

@ -13,5 +13,8 @@ else
json.type user["type"]
json.name user["name"]
json.image_url user["avatar_url"]
json.blockchain_perc user.contribution_perc(project)
if project.use_blockchain
db_user = User.find_by_id(user["id"])
json.blockchain_perc db_user.contribution_perc(project)
end
end