|
@@ -7,6 +7,7 @@ import com.aliyun.dysmsapi20170525.models.SendSmsResponse;
|
|
import com.aliyun.teaopenapi.models.Config;
|
|
import com.aliyun.teaopenapi.models.Config;
|
|
import com.google.zxing.common.BitMatrix;
|
|
import com.google.zxing.common.BitMatrix;
|
|
import com.zhongzheng.common.core.domain.AjaxResult;
|
|
import com.zhongzheng.common.core.domain.AjaxResult;
|
|
|
|
+import com.zhongzheng.common.exception.CustomException;
|
|
import io.micrometer.core.lang.NonNull;
|
|
import io.micrometer.core.lang.NonNull;
|
|
import net.sf.jsqlparser.expression.LongValue;
|
|
import net.sf.jsqlparser.expression.LongValue;
|
|
|
|
|
|
@@ -347,6 +348,11 @@ public class ToolsUtils {
|
|
if(!StrUtil.isNotBlank(TenantId)||TenantId==null){
|
|
if(!StrUtil.isNotBlank(TenantId)||TenantId==null){
|
|
TenantId = ServletUtils.getResponse().getHeader("TenantId");
|
|
TenantId = ServletUtils.getResponse().getHeader("TenantId");
|
|
}
|
|
}
|
|
|
|
+ if(Validator.isNotEmpty(TenantId)){
|
|
|
|
+ if(TenantId.equals("undefined")){
|
|
|
|
+ throw new CustomException("企业ID错误");
|
|
|
|
+ }
|
|
|
|
+ }
|
|
return TenantId;
|
|
return TenantId;
|
|
}
|
|
}
|
|
|
|
|