From de53d12e223eb8c9a562aeefdcfa9b4039b3d0b0 Mon Sep 17 00:00:00 2001 From: wei <kaede@kaededeMacBook-Air.local> Date: 星期三, 16 六月 2021 10:24:18 +0800 Subject: [PATCH] dome - 1 --- HDL_ON/Common/UserInfo.cs | 34 ++++++++++++++++++++++++++++++++++ 1 files changed, 34 insertions(+), 0 deletions(-) diff --git a/HDL_ON/Common/UserInfo.cs b/HDL_ON/Common/UserInfo.cs index 18d4f19..289baf8 100644 --- a/HDL_ON/Common/UserInfo.cs +++ b/HDL_ON/Common/UserInfo.cs @@ -5,6 +5,7 @@ using System.Drawing; using HDL_ON.DAL; using HDL_ON.DAL.Server; +using Shared; namespace HDL_ON { @@ -24,6 +25,39 @@ { if (m_Current == null) { + //Dome妯″紡 + if (MainPage.NoLoginMode) + { + if (Language.CurrentLanguage == "Chinese") + { + m_Current = new UserInfo() + { + ID = "1234567890", + userName = "璇曠敤璐﹀彿", + AccountString = "璇曠敤璐﹀彿", + userMobileInfo = "璇曠敤璐﹀彿", + userEmailInfo = "璇曠敤璐﹀彿", + language = "Chinese", + areaCode = "86", + headImagePagePath = "LoginIcon/2.png", + }; + } + else + { + m_Current = new UserInfo() + { + ID = "1234567890", + userName = "Trial account", + AccountString = "Trial account", + userMobileInfo = "Trial account", + userEmailInfo = "Trial account", + language = "English", + areaCode = "86", + headImagePagePath = "LoginIcon/2.png", + }; + } + } + try { UserInfo temp = Newtonsoft.Json.JsonConvert.DeserializeObject<UserInfo>( -- Gitblit v1.8.0