add api isRegisteredInTrustie

This commit is contained in:
nigel007 2019-08-26 16:16:31 +08:00
parent 339b9138a4
commit b3ab7359c7
2 changed files with 17 additions and 0 deletions

View File

@ -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

View File

@ -19,6 +19,7 @@ class BlockchainsService
return result
end
# 以太坊过期方法
# # 获取用户使用过的networkid, port
# def get_networkids_ports(user)