remove loggers
This commit is contained in:
parent
5d11315cfc
commit
ab2d045f0a
|
@ -19,7 +19,6 @@ module Mobile
|
|||
# user_id, created_at, updated_at需要在程序中创建
|
||||
end
|
||||
post 'create' do
|
||||
Rails.logger.info(params) # 输出所有参数
|
||||
authenticate!
|
||||
ps = ProjectsService.new # 创建项目
|
||||
user = current_user
|
||||
|
@ -27,7 +26,6 @@ module Mobile
|
|||
if status == 0
|
||||
# 表示项目创建成功
|
||||
# 创建版本库
|
||||
Rails.logger.info("项目创建成功...")
|
||||
rs = RepositoriesService.new
|
||||
params_repository = ActiveSupport::HashWithIndifferentAccess.new(identifier: project.name)
|
||||
status, repository = rs.createNewRepoBlockchain project, params_repository
|
||||
|
@ -35,16 +33,13 @@ module Mobile
|
|||
gitUrl = gitlab_address.to_s+"/"+project.owner.to_s+"/"+ repository.identifier + "."+"git"
|
||||
gitUrl = Base64.encode64(gitUrl)
|
||||
if status == 0
|
||||
Rails.logger.info("版本库创建成功...")
|
||||
bs = BlockchainsService.new
|
||||
status, blockchain = bs.create_item project, user, params # 创建blockchain item
|
||||
if status == 0
|
||||
Rails.logger.info("插入blockchains表成功...")
|
||||
# 表示插入blockchains表成功了
|
||||
bpcs = BlockchainProjectClientsService.new
|
||||
status, bpc = bpcs.create_item project, user, params
|
||||
if status == 0
|
||||
Rails.logger.info("插入blockchain_project_clients表成功...")
|
||||
# 表示插入blockchain_project_clients表也成功了
|
||||
present :gitUrl, gitUrl
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue