mirror of
https://github.com/Hello-hao/Tbed.git
synced 2024-04-21 12:32:10 +00:00
:art:修改系统配置表数据结构,添加数据库连接检测
This commit is contained in:
@@ -3,7 +3,6 @@ package cn.hellohao.controller;
|
||||
import cn.hellohao.auth.token.JWTUtil;
|
||||
import cn.hellohao.pojo.*;
|
||||
import cn.hellohao.service.*;
|
||||
import cn.hellohao.service.impl.AlbumServiceImpl;
|
||||
import cn.hellohao.service.impl.UploadServicel;
|
||||
import cn.hellohao.service.impl.deleImages;
|
||||
import cn.hellohao.utils.GetIPS;
|
||||
@@ -34,7 +33,7 @@ import java.util.UUID;
|
||||
public class IndexController {
|
||||
@Autowired private ImgService imgService;
|
||||
@Autowired private SysConfigService sysConfigService;
|
||||
@Autowired private ConfigService configService;
|
||||
@Autowired private ConfdataService confdataService;
|
||||
@Autowired private UploadConfigService uploadConfigService;
|
||||
@Autowired private UploadServicel uploadServicel;
|
||||
@Autowired private deleImages deleimages;
|
||||
@@ -54,21 +53,21 @@ public class IndexController {
|
||||
@ResponseBody
|
||||
public Msg webInfo() {
|
||||
Msg msg = new Msg();
|
||||
Config config = configService.getSourceype();
|
||||
final Confdata confdata = confdataService.selectConfdata("config");
|
||||
JSONObject cd = JSONObject.parseObject(confdata.getJsondata());
|
||||
UploadConfig updateConfig = uploadConfigService.getUpdateConfig();
|
||||
SysConfig sysConfig = sysConfigService.getstate();
|
||||
JSONObject jsonObject = new JSONObject();
|
||||
AppClient appClient = appClientService.getAppClientData("app");
|
||||
jsonObject.put("webname", config.getWebname());
|
||||
jsonObject.put("websubtitle", config.getWebsubtitle());
|
||||
jsonObject.put("keywords", config.getWebkeywords());
|
||||
jsonObject.put("description", config.getWebms());
|
||||
jsonObject.put("explain", config.getExplain());
|
||||
jsonObject.put("favicon", config.getWebfavicons());
|
||||
jsonObject.put("baidu", config.getBaidu());
|
||||
jsonObject.put("links", config.getLinks());
|
||||
jsonObject.put("aboutinfo", config.getAboutinfo());
|
||||
jsonObject.put("logo", config.getLogo());
|
||||
jsonObject.put("webname", cd.getString("webname"));
|
||||
jsonObject.put("websubtitle", cd.getString("websubtitle"));
|
||||
jsonObject.put("keywords", cd.getString("keywords"));
|
||||
jsonObject.put("description", cd.getString("description"));
|
||||
jsonObject.put("explain", cd.getString("explain"));
|
||||
jsonObject.put("baidu", cd.getString("baidu"));
|
||||
jsonObject.put("links", cd.getString("links"));
|
||||
jsonObject.put("aboutinfo", cd.getString("aboutinfo"));
|
||||
jsonObject.put("logo", cd.getString("logo"));
|
||||
jsonObject.put("api", updateConfig.getApi());
|
||||
jsonObject.put("register", sysConfig.getRegister());
|
||||
jsonObject.put("isuse", appClient.getIsuse());
|
||||
|
||||
Reference in New Issue
Block a user