优化国际化参数lang的接收方式
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user