Merge pull request #8 from rymcu/dev

🎨 代码结构变更
This commit is contained in:
ronger 2020-03-31 10:07:19 +08:00 committed by GitHub
commit f81e18cf10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 5 deletions

View File

@ -48,7 +48,8 @@ public class JavaMailServiceImpl implements JavaMailService {
private String USERNAME;
@Value("${spring.mail.password}")
private String PASSWORD;
private final static String BASE_URL = "https://rymcu.com";
@Value("${resource.domain}")
private String BASE_URL;
@Override
public Integer sendEmailCode(String email) throws MessagingException {

View File

@ -11,8 +11,9 @@ import java.util.concurrent.*;
*/
public class BaiDuUtils {
private static String token = "9cdKR6bVCJzxDEJS";
private static String site = "https://rymcu.com";
private final static String token = "9cdKR6bVCJzxDEJS";
private final static String site = "https://rymcu.com";
public static void sendSEOData(String permalink) {
if (StringUtils.isBlank(permalink) || StringUtils.isBlank(token)) {