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
64e037b3
Commit
64e037b3
authored
Jun 03, 2020
by
郝聪敏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
延长正在投递重试时间;兼容邮箱大小写
parent
bf4da932
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
home.js
app/service/home.js
+3
-2
No files found.
app/service/home.js
View file @
64e037b3
...
...
@@ -551,7 +551,7 @@ class HomeService extends Service {
ctx
.
logger
.
info
(
sendStatus
,
'
正在投递
'
,
sendStatus
===
'
正在投递
'
);
if
(
sendStatus
===
'
正在投递
'
)
{
await
mailSendStatusFrame
.
waitFor
(
3
0000
);
await
mailSendStatusFrame
.
waitFor
(
6
0000
);
const
clickStatus
=
await
mailSendStatusFrame
.
$eval
(
'
#clickstu
'
,
el
=>
el
.
innerHTML
);
if
(
clickStatus
===
'
[查看详情]
'
)
await
mailSendStatusFrame
.
click
(
'
#clickstu
'
);
await
mailSendStatusFrame
.
click
(
'
#refreshbutton
'
);
...
...
@@ -566,7 +566,8 @@ class HomeService extends Service {
continue
;
}
if
(
!
receiver
.
includes
(
email
))
{
ctx
.
logger
.
info
(
receiver
,
email
,
!
receiver
.
includes
(
email
)
||
!
receiver
.
includes
(
email
.
toLowerCase
()));
if
(
!
receiver
.
includes
(
email
)
&&
!
receiver
.
includes
(
email
.
toLowerCase
()))
{
ctx
.
logger
.
error
(
'
收件箱不一致, 投递失败
'
);
continue
;
}
...
...
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