From b19ee2ea2b1a6cb0b1d1c1e18b83b58aee8ff824 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期二, 24 三月 2026 20:00:56 +0800
Subject: [PATCH] 0312 多语言配置安全防范

---
 Main/System/Language/Language.cs |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/Main/System/Language/Language.cs b/Main/System/Language/Language.cs
index 7261706..3507c37 100644
--- a/Main/System/Language/Language.cs
+++ b/Main/System/Language/Language.cs
@@ -38,7 +38,11 @@
     {
         //鍒濆鍖�, 璇ヨ〃鏄殢鍖呭畨瑁呯殑濡傛灉鐑洿闇�瑕佷簩娆℃墠鐢熸晥
         var config = InitialFunctionConfig.Get("LanguageEx");
-
+        if (config.Numerical1 == null || config.Numerical2 == null || config.Numerical3 == null)
+        {
+            return;
+        }      
+        
         languageShowDict = JsonMapper.ToObject<Dictionary<string, string>>(config.Numerical1);
         languageStartDict = JsonMapper.ToObject<Dictionary<string, string[]>>(config.Numerical2);
         languageDict = JsonMapper.ToObject<Dictionary<string, string>>(config.Numerical3);

--
Gitblit v1.8.0