From 07696682cac7634a6850911080557b8adfb34f2d Mon Sep 17 00:00:00 2001 From: xxq250 Date: Fri, 12 May 2023 10:06:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=AC=E5=9C=B0=E7=89=88=E5=8E=BB=E6=8E=89?= =?UTF-8?q?=E4=B8=89=E6=96=B9=E7=99=BB=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/settings_controller.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/controllers/settings_controller.rb b/app/controllers/settings_controller.rb index def2e2c89..252bb6a9a 100644 --- a/app/controllers/settings_controller.rb +++ b/app/controllers/settings_controller.rb @@ -63,6 +63,7 @@ class SettingsController < ApplicationController def get_third_party @third_party = [] + return if EduSetting.get("is_local") == "true" @third_party << { name: 'educoder', url: EducoderOauth.oauth_url @@ -71,6 +72,7 @@ class SettingsController < ApplicationController def get_third_party_new @third_party_new = [] + return if EduSetting.get("is_local") == "true" @third_party_new << { name: 'educoder', url: EducoderOauth.oauth_url,