he2802 2 жил өмнө
parent
commit
080183c1df

+ 7 - 0
zhongzheng-system/src/main/java/com/zhongzheng/modules/system/service/impl/SysWebServiceImpl.java

@@ -1,5 +1,6 @@
 package com.zhongzheng.modules.system.service.impl;
 
+import cn.hutool.core.lang.Validator;
 import com.alibaba.fastjson.JSONArray;
 import com.alibaba.fastjson.JSONObject;
 import com.zhongzheng.common.exception.CustomException;
@@ -35,6 +36,12 @@ public class SysWebServiceImpl implements ISysWebService {
     @Override
     @Transactional(rollbackFor = Exception.class)
     public Boolean createTenantConfig(TopSysTenantRegisterAddBo bo) {
+        if(Validator.isNotEmpty(bo.getHostPc())){
+            bo.setHostPc(bo.getHostPc().trim());
+        }
+        if(Validator.isNotEmpty(bo.getHostH5())){
+            bo.setHostH5(bo.getHostH5().trim());
+        }
         Collection<SysConfig> coll = new HashSet<>();
         SysConfig config1 = new SysConfig();
         config1.setTenantId(bo.getTenantId());