新增:贡献占比需增加项目是否开启确权机制
This commit is contained in:
parent
47a8f17073
commit
b0e117b065
|
@ -13,5 +13,8 @@ else
|
||||||
json.type user["type"]
|
json.type user["type"]
|
||||||
json.name user["name"]
|
json.name user["name"]
|
||||||
json.image_url user["avatar_url"]
|
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
|
end
|
||||||
|
|
Loading…
Reference in New Issue