change param type

This commit is contained in:
nigel007 2019-05-26 16:00:00 +08:00
parent 5bbec0b311
commit 49eb0cf73a
1 changed files with 2 additions and 1 deletions

View File

@ -77,7 +77,7 @@ module Mobile
params do
requires :username, type: String
requires :password, type: String
requires :shaList, type: Array
requires :shaList, type: Array[String]
requires :branch, type: String
requires :ownername, type: String
requires :reponame, type: String
@ -88,6 +88,7 @@ module Mobile
if owner
project = Project.find_by_user_id_name(owner.id, params[:reponame])
if project
Rails.logger.info params[:shaList].length
g = Gitlab.client # 用于通过gitlab api进行查询
result = []
for i in 0..params[:shaList].length