|
@@ -14,6 +14,7 @@ import com.zhongzheng.common.core.controller.BaseController;
|
|
|
import com.zhongzheng.common.core.domain.AjaxResult;
|
|
|
import com.zhongzheng.common.core.page.TableDataInfo;
|
|
|
import com.zhongzheng.common.enums.BusinessType;
|
|
|
+import com.zhongzheng.common.exception.CustomException;
|
|
|
import com.zhongzheng.common.type.EncryptHandler;
|
|
|
import com.zhongzheng.common.utils.ServletUtils;
|
|
|
import com.zhongzheng.common.utils.ToolsUtils;
|
|
@@ -491,6 +492,9 @@ public class CommonController extends BaseController {
|
|
|
Map<String, Object> map = new HashMap<>();
|
|
|
String jsonStr = configService.selectConfigByKey("home.header");
|
|
|
JSONObject objectJson = JSON.parseObject(jsonStr);
|
|
|
+ if(Validator.isEmpty(objectJson)){
|
|
|
+ throw new CustomException("数据错误");
|
|
|
+ }
|
|
|
map.put("companyName", String.valueOf(objectJson.get("companyName")));
|
|
|
return AjaxResult.success(map);
|
|
|
}
|