优化国际化参数lang的接收方式
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package com.gxwebsoft.common.core.web;
|
||||
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.gxwebsoft.common.core.annotation.QueryField;
|
||||
import com.gxwebsoft.common.core.annotation.QueryType;
|
||||
@@ -83,11 +84,10 @@ public class BaseParam implements Serializable {
|
||||
|
||||
/**
|
||||
* 国际化参数
|
||||
* @return
|
||||
*/
|
||||
public String getLang(){
|
||||
if(this.lang == null){
|
||||
return "zh_CN";
|
||||
if(StrUtil.isBlank(this.lang)){
|
||||
return null;
|
||||
}
|
||||
if(this.lang.equals("zh")){
|
||||
return "zh_CN";
|
||||
|
||||
Reference in New Issue
Block a user