Toggle navigation
Toggle navigation
This project
Loading...
Sign in
OPENTECH
/
yoho-node-ci
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
2
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
沈志敏
8 years ago
Commit
0916bf73707d924ebc44642c589de58db2324f1f
1 parent
9c3fe56c
只检查pc和wap站
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
apps/web/actions/checkcode.js
apps/web/actions/checkcode.js
View file @
0916bf7
...
...
@@ -89,6 +89,7 @@ router.post('/exec', async(ctx) => {
module
.
exports
=
{
router
,
async
check
()
{
let
names
=
[
'yohobuywap-node'
,
'yohobuy-node'
];
// 只检查pc 和wap站
let
rule
=
new
schedule
.
RecurrenceRule
();
rule
.
dayOfWeek
=
[
0
,
new
schedule
.
Range
(
1
,
6
)];
...
...
@@ -102,7 +103,7 @@ module.exports = {
}
projects
.
forEach
(
async
(
p
)
=>
{
if
(
p
.
name
!==
'yohobuywap-node'
)
{
// todo 暂时只检查wap站
if
(
names
.
indexOf
(
p
.
name
)
===
-
1
)
{
return
;
}
if
(
!
running
[
p
.
name
])
{
...
...
Please
register
or
login
to post a comment