From 017bd23afe166155fdbe275797105437c97f5089 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E5=BF=A0=E6=9E=97?= <170083662@qq.com> Date: Mon, 2 Dec 2024 21:46:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=9B=BD=E9=99=85=E5=8C=96?= =?UTF-8?q?=E5=8F=82=E6=95=B0lang=E7=9A=84=E6=8E=A5=E6=94=B6=E6=96=B9?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/gxwebsoft/common/core/web/BaseParam.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/java/com/gxwebsoft/common/core/web/BaseParam.java b/src/main/java/com/gxwebsoft/common/core/web/BaseParam.java index ff3e5f0..fb68fa2 100644 --- a/src/main/java/com/gxwebsoft/common/core/web/BaseParam.java +++ b/src/main/java/com/gxwebsoft/common/core/web/BaseParam.java @@ -81,10 +81,18 @@ public class BaseParam implements Serializable { return CommonUtil.listGetOne(records); } + /** + * 国际化参数 + * @return + */ public String getLang(){ + if(this.lang == null){ + return "zh_CN"; + } if(this.lang.equals("zh")){ return "zh_CN"; } return this.lang; } + }