From 898ef6c4c6a7b97358ef0ad61970fa26eb9cf8c0 Mon Sep 17 00:00:00 2001 From: "BOYA,CHIU" Date: Wed, 21 Jul 2021 15:04:39 +0800 Subject: [PATCH] fix error --- app/controllers/client_sites_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/client_sites_controller.rb b/app/controllers/client_sites_controller.rb index dc59b5d..52c694d 100644 --- a/app/controllers/client_sites_controller.rb +++ b/app/controllers/client_sites_controller.rb @@ -103,7 +103,7 @@ class ClientSitesController < ApplicationController def check_server_ability site_num = params[:site_num] 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] manager = ServerAbilityManager.where(store_token: store_token).first ability = manager.max_site_ability rescue 0