add api isRegisteredInTrustie
This commit is contained in:
parent
339b9138a4
commit
b3ab7359c7
|
@ -228,6 +228,22 @@ module Mobile
|
|||
end
|
||||
end
|
||||
|
||||
|
||||
desc "判断用户是否注册了Trustie"
|
||||
params do
|
||||
requires :username, type: String
|
||||
requires :password, type: String
|
||||
end
|
||||
post 'isRegisteredInTrustie' do
|
||||
authenticate!
|
||||
owner = User.find_by_login(params[:ownername])
|
||||
if owner
|
||||
{status:0, result:true}
|
||||
else
|
||||
{status:0, result:false}
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -19,6 +19,7 @@ class BlockchainsService
|
|||
return result
|
||||
end
|
||||
|
||||
|
||||
# 以太坊过期方法
|
||||
# # 获取用户使用过的networkid, port
|
||||
# def get_networkids_ports(user)
|
||||
|
|
Loading…
Reference in New Issue