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
ffcc60ae
Commit
ffcc60ae
authored
Jun 04, 2020
by
郝聪敏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加投递失败状态
parent
318738fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
home.js
app/service/home.js
+3
-1
No files found.
app/service/home.js
View file @
ffcc60ae
...
@@ -550,7 +550,6 @@ class HomeService extends Service {
...
@@ -550,7 +550,6 @@ class HomeService extends Service {
let
sendStatus
=
await
mailSendStatusFrame
.
$eval
(
'
#statusbtn
'
,
el
=>
el
.
innerHTML
);
let
sendStatus
=
await
mailSendStatusFrame
.
$eval
(
'
#statusbtn
'
,
el
=>
el
.
innerHTML
);
const
receiver
=
await
mailSendStatusFrame
.
$eval
(
'
.oneline
'
,
el
=>
el
.
innerHTML
);
const
receiver
=
await
mailSendStatusFrame
.
$eval
(
'
.oneline
'
,
el
=>
el
.
innerHTML
);
ctx
.
logger
.
info
(
sendStatus
,
'
正在投递
'
,
sendStatus
===
'
正在投递
'
);
if
(
sendStatus
===
'
正在投递
'
)
{
if
(
sendStatus
===
'
正在投递
'
)
{
await
mailSendStatusFrame
.
waitFor
(
60000
);
await
mailSendStatusFrame
.
waitFor
(
60000
);
const
clickStatus
=
await
mailSendStatusFrame
.
$eval
(
'
#clickstu
'
,
el
=>
el
.
innerHTML
);
const
clickStatus
=
await
mailSendStatusFrame
.
$eval
(
'
#clickstu
'
,
el
=>
el
.
innerHTML
);
...
@@ -563,6 +562,9 @@ class HomeService extends Service {
...
@@ -563,6 +562,9 @@ class HomeService extends Service {
await
mailSendStatusFrame
.
click
(
'
#statusbtn
'
);
await
mailSendStatusFrame
.
click
(
'
#statusbtn
'
);
if
(
sendStatus
!==
'
投递成功
'
)
{
if
(
sendStatus
!==
'
投递成功
'
)
{
if
(
sendStatus
===
'
投递失败
'
)
{
result
.
push
({
id
:
mails
[
i
].
id
,
code
:
1
,
msg
:
'
投递失败
'
});
}
ctx
.
logger
.
error
(
sendStatus
||
'
投递失败
'
);
ctx
.
logger
.
error
(
sendStatus
||
'
投递失败
'
);
continue
;
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