mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-16 17:55:56 +08:00
新增:贡献占比需增加项目是否开启确权机制
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user