Browse Source

对token初始化增加了非空数量的判断

pull/326/head
zhangxunhui 3 years ago
parent
commit
8aa844749f
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      app/forms/projects/create_form.rb

+ 2
- 2
app/forms/projects/create_form.rb View File

@@ -16,8 +16,8 @@ class Projects::CreateForm < BaseForm
check_project_language(project_language_id)
check_project_name(user_id, name) unless name.blank?
check_repository_name(user_id, repository_name) unless repository_name.blank?
check_blockchain_token_all(blockchain_token_all)
check_blockchain_init_token(blockchain_init_token)
check_blockchain_token_all(blockchain_token_all) unless blockchain_token_all.blank?
check_blockchain_init_token(blockchain_init_token) unless blockchain_init_token.blank?
end

def check_license


Loading…
Cancel
Save