Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
egg-puppeteer
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ui
egg-puppeteer
Commits
59a76c93
Commit
59a76c93
authored
May 15, 2020
by
郝聪敏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改测试域名
parent
932b2396
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
home.js
app/service/home.js
+2
-1
config.default.js
config/config.default.js
+1
-1
No files found.
app/service/home.js
View file @
59a76c93
...
...
@@ -467,7 +467,7 @@ class HomeService extends Service {
}
}
async
sendMail
(
mails
)
{
async
sendMail
(
mails
=
[]
)
{
const
{
ctx
,
service
}
=
this
;
const
result
=
[];
const
browserConfig
=
{
...
...
@@ -478,6 +478,7 @@ class HomeService extends Service {
height
:
1000
,
},
};
if
(
!
mails
.
length
)
return
result
;
let
cookie
=
fs
.
readFileSync
(
path
.
join
(
__dirname
,
cookiePath
)).
toString
();
try
{
const
browser
=
await
puppeteer
.
launch
(
browserConfig
);
...
...
config/config.default.js
View file @
59a76c93
...
...
@@ -59,7 +59,7 @@ module.exports = appInfo => {
},
},
legal
:
{
host
:
'
http
://192.168.28.66:20585
'
,
host
:
'
http
s://adanos-fe.liangkebang.net
'
,
},
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment