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

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

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