优化国际化参数lang的接收方式

This commit is contained in:
2024-12-02 21:46:15 +08:00
parent eef962d93a
commit 017bd23afe

View File

@@ -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;
}
}