fix error

This commit is contained in:
BOYA,CHIU 2021-07-21 15:04:39 +08:00
parent 23a7aadb6d
commit 898ef6c4c6
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@ class ClientSitesController < ApplicationController
def check_server_ability def check_server_ability
site_num = params[:site_num] site_num = params[:site_num]
store_token = params[:store_token] store_token = params[:store_token]
site_name = params[:site_name] site_name = params[:site_name]=='Orbit' ? (RegisteredSite.where(uid: store_token).first.title rescue params[:site_name]) : params[:site_name]
site_url = params[:site_url] site_url = params[:site_url]
manager = ServerAbilityManager.where(store_token: store_token).first manager = ServerAbilityManager.where(store_token: store_token).first
ability = manager.max_site_ability rescue 0 ability = manager.max_site_ability rescue 0