Commit 2a6459e0 authored by chenchao.deng's avatar chenchao.deng

关闭生成代理文件定时任务

parent 382d957a
......@@ -1237,7 +1237,7 @@ public class AccountServiceImpl implements AccountService {
sb.append("Company: " + contactUs.getCompanyName() + "<br/>");
sb.append("Title: " + contactUs.getJobTitle() + "<br/>");
try {
emailService.sendHtmlMail("sales@cloudam.io", "新客户注册:" + contactUs.getName(), sb.toString());
emailService.sendHtmlMail("WJLLQ20240808@163.com", "新客户注册:" + contactUs.getName(), sb.toString());
} catch (Exception e) {
log.error("sending email fails on customer regisration", e);
}
......
......@@ -53,7 +53,7 @@ public class EmailServiceImpl implements EmailService {
MimeMessage message = mailSender.createMimeMessage();
try {
MimeMessageHelper helper = new MimeMessageHelper(message, true);
InternetAddress from = new InternetAddress("info@cloudam.io", "Cloudam云端软件");
InternetAddress from = new InternetAddress("notify@bkunyun.com", "Cloudam云端软件");
helper.setFrom(from);
helper.setTo(to);
helper.setSubject(subject);
......
......@@ -2,8 +2,11 @@ package com.edgec.browserbackend;
import com.alibaba.fastjson.JSONObject;
import com.aliyun.sdk.service.ecs20140526.models.DeleteInstanceResponse;
import com.edgec.browserbackend.account.domain.Account;
import com.edgec.browserbackend.account.domain.UserBalance;
import com.edgec.browserbackend.account.repository.UserBalanceRepository;
import com.edgec.browserbackend.account.service.AccountService;
import com.edgec.browserbackend.account.service.EmailService;
import com.edgec.browserbackend.browser.domain.CloudPlatformConfig;
import com.edgec.browserbackend.browser.domain.IpHistory;
import com.edgec.browserbackend.browser.domain.ReceptionPlatformOptions;
......@@ -23,6 +26,7 @@ import com.tencentcloudapi.tat.v20201028.models.Command;
import java.time.Instant;
import javax.annotation.Resource;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import com.tencentcloudapi.common.AbstractModel;
......@@ -44,16 +48,27 @@ class BrowserBackendApplicationTests {
@Resource
private CloudPlatformConfigRepository cloudPlatformConfigRepository;
@Resource
AccountService accountService;
@Autowired
private EmailService emailService;
@Test
void contextLoads() {
ReceptionPlatformOptions receptionPlatformOptions = new ReceptionPlatformOptions();
receptionPlatformOptions.setPlatformType(1);
receptionPlatformOptions.setChildType(1);
receptionPlatformOptions.setPlatform("敦煌网");
receptionPlatformOptions.setUrl("https:www.dhgate.com");
receptionPlatformOptions.setPictureUrl("https://ip-image.oss-rg-china-mainland.aliyuncs.com/app_image/app_image/dhgate.png");
receptionPlatformOptions.setWeight(100);
//repository.save(receptionPlatformOptions);
Account contactUs = accountService.findByName("18711016574");
StringBuilder sb = new StringBuilder();
sb.append("Name: " + contactUs.getName() + "<br/>");
sb.append("Email: " + contactUs.getEmail() + "<br/>");
sb.append("Phone: " + contactUs.getPhoneNumber() + "<br/>");
sb.append("Company: " + contactUs.getCompanyName() + "<br/>");
sb.append("Title: " + contactUs.getJobTitle() + "<br/>");
try {
//emailService.sendHtmlMail("WJLLQ20240808@163.com", "新客户注册:" + contactUs.getName(), sb.toString());
} catch (Exception e) {
}
}
@Test
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment