修改了use blockchain的判断条件
This commit is contained in:
parent
015d221ccf
commit
45cef457d3
|
@ -41,7 +41,7 @@ module Watchable
|
|||
(count_user * 1.0 / (count_all + 0.000000001)).round(5)
|
||||
end
|
||||
|
||||
if @project.use_blockchain == true or @project.use_blockchain == 1
|
||||
if @project['use_blockchain'] == true or @project['use_blockchain'] == 1
|
||||
balance_user = Blockchain::BalanceQueryOneProject.call({"user_id": @user.id, "project_id": @project.id})[:balance]
|
||||
balance_all = Blockchain::RepoBasicInfo.call({"project_id": @project.id})["cur_supply"]
|
||||
score = cal_perc(balance_user, balance_all)
|
||||
|
|
Loading…
Reference in New Issue