Commit 59a76c93 authored by 郝聪敏's avatar 郝聪敏

修改测试域名

parent 932b2396
...@@ -467,7 +467,7 @@ class HomeService extends Service { ...@@ -467,7 +467,7 @@ class HomeService extends Service {
} }
} }
async sendMail(mails) { async sendMail(mails = []) {
const { ctx, service } = this; const { ctx, service } = this;
const result = []; const result = [];
const browserConfig = { const browserConfig = {
...@@ -478,6 +478,7 @@ class HomeService extends Service { ...@@ -478,6 +478,7 @@ class HomeService extends Service {
height: 1000, height: 1000,
}, },
}; };
if (!mails.length) return result;
let cookie = fs.readFileSync(path.join(__dirname, cookiePath)).toString(); let cookie = fs.readFileSync(path.join(__dirname, cookiePath)).toString();
try { try {
const browser = await puppeteer.launch(browserConfig); const browser = await puppeteer.launch(browserConfig);
......
...@@ -59,7 +59,7 @@ module.exports = appInfo => { ...@@ -59,7 +59,7 @@ module.exports = appInfo => {
}, },
}, },
legal: { legal: {
host: 'http://192.168.28.66:20585', host: 'https://adanos-fe.liangkebang.net',
}, },
}; };
......
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