|
|
@@ -17,7 +17,6 @@ class SitePagesController < ApplicationController |
|
|
end |
|
|
end |
|
|
|
|
|
|
|
|
def create |
|
|
def create |
|
|
return normal_status(-1, "你还未通过身份认证,无法开通Page") unless current_user.id_card_verify |
|
|
|
|
|
return normal_status(-1, "你还未开通Page服务,无法进行部署") unless current_user.website_permission |
|
|
return normal_status(-1, "你还未开通Page服务,无法进行部署") unless current_user.website_permission |
|
|
return normal_status(-1, "你已使用了 #{params[:identifier]} 作为page标识") if Page.exists?(identifier: params[:identifier], user: current_user) |
|
|
return normal_status(-1, "你已使用了 #{params[:identifier]} 作为page标识") if Page.exists?(identifier: params[:identifier], user: current_user) |
|
|
return normal_status(-1, "该仓库已开通Page服务") if Page.exists?(project: @project) |
|
|
return normal_status(-1, "该仓库已开通Page服务") if Page.exists?(project: @project) |
|
|
|