From 31463848256bb0ea493bbd0d5d4f506e849fdaf9 Mon Sep 17 00:00:00 2001
From: client_Zxw <826696702@qq.com>
Date: 星期一, 24 十二月 2018 21:21:46 +0800
Subject: [PATCH] Merge branch 'Cross_Server' of http://192.168.0.87:10010/r/snxxz_scripts into Cross_Server

---
 System/SystemSetting/SystemSetWin.cs |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/System/SystemSetting/SystemSetWin.cs b/System/SystemSetting/SystemSetWin.cs
index 39064cd..2a6b569 100644
--- a/System/SystemSetting/SystemSetWin.cs
+++ b/System/SystemSetting/SystemSetWin.cs
@@ -2,6 +2,8 @@
 using System.Collections.Generic;
 using UnityEngine;
 using UnityEngine.UI;
+using LitJson;
+using TableConfig;
 
 namespace Snxxz.UI
 {
@@ -116,6 +118,16 @@
                 m_AntiAddition.gameObject.SetActive(false);
             }
 
+            var switchAccountJson = JsonMapper.ToObject(Config.Instance.Get<FuncSwitchConfig>(2).AppIdSwitch);
+            if (switchAccountJson.Keys.Contains(VersionConfig.Get().appId) && switchAccountJson[VersionConfig.Get().appId].ToString() == "0")
+            {
+                m_SwitchAccountBtn.gameObject.SetActive(false);
+            }
+            else
+            {
+                m_SwitchAccountBtn.gameObject.SetActive(true);
+            }
+
             loginModel.accountBindOkEvent += UpdateAccountBindTitle;
             SDKUtility.Instance.onFreePlatfromDoIDAuthenticationOk += OnAuthenticationOk;
             SystemSetting.Instance.gameFrameChangeEvent += OnSwitchGameFrame;

--
Gitblit v1.8.0