增加登录验证码状态

This commit is contained in:
TinyAnts 2023-01-17 18:11:53 +08:00
parent 84cded01f2
commit 6cdc2b82e1
1 changed files with 4 additions and 4 deletions

View File

@ -2,10 +2,7 @@ package com.mdd.admin.service.impl;
import com.mdd.admin.service.IIndexService; import com.mdd.admin.service.IIndexService;
import com.mdd.common.config.GlobalConfig; import com.mdd.common.config.GlobalConfig;
import com.mdd.common.util.ArrayUtils; import com.mdd.common.util.*;
import com.mdd.common.util.ConfigUtils;
import com.mdd.common.util.TimeUtils;
import com.mdd.common.util.UrlUtils;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import java.util.*; import java.util.*;
@ -71,7 +68,10 @@ public class IndexServiceImpl implements IIndexService {
Map<String, String> website = ConfigUtils.get("website"); Map<String, String> website = ConfigUtils.get("website");
String copyright = ConfigUtils.get("website", "copyright", ""); String copyright = ConfigUtils.get("website", "copyright", "");
String captchaStatus = YmlUtils.get("like.captcha.status");
Map<String, Object> map = new LinkedHashMap<>(); Map<String, Object> map = new LinkedHashMap<>();
map.put("loginCaptcha", StringUtils.isNotNull(captchaStatus) && captchaStatus.equals("true"));
map.put("webName", website.getOrDefault("name", "")); map.put("webName", website.getOrDefault("name", ""));
map.put("webLogo", UrlUtils.toAbsoluteUrl(website.getOrDefault("logo", ""))); map.put("webLogo", UrlUtils.toAbsoluteUrl(website.getOrDefault("logo", "")));
map.put("webFavicon", UrlUtils.toAbsoluteUrl(website.getOrDefault("favicon", ""))); map.put("webFavicon", UrlUtils.toAbsoluteUrl(website.getOrDefault("favicon", "")));