Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-arena-api
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
ygopro-arena-api
Commits
1ccd8929
Commit
1ccd8929
authored
May 01, 2017
by
ganjingcun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cron
parent
9bbb8c6e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
routes/api.js
routes/api.js
+2
-2
test.js
test.js
+2
-2
No files found.
routes/api.js
View file @
1ccd8929
...
...
@@ -50,8 +50,8 @@ pool.on('error', function (err, client) {
└───────────────────────── second (0 - 59, OPTIONAL)
*/
var
schedule
=
require
(
'
node-schedule
'
);
var
j
=
schedule
.
scheduleJob
(
'
1
0 1 * *
'
,
function
()
{
// 每月的1日0点30分30秒触发 :'30 30 0 1 * *'
var
j
=
schedule
.
scheduleJob
(
'
30 30
0 1 * *
'
,
function
()
{
console
.
log
(
'
The scheduleJob run on first day of every month!
'
);
pool
.
connect
(
function
(
err
,
client
,
done
)
{
...
...
test.js
View file @
1ccd8929
...
...
@@ -5,8 +5,8 @@ var superagent = require('superagent')
var
mement
=
require
(
'
moment
'
)
//
var url = 'https://mycard.moe/ygopro/api/score'
var
url
=
'
http://localhost:3000/api/score
'
var
url
=
'
https://mycard.moe/ygopro/api/score
'
//
var url = 'http://localhost:3000/api/score'
superagent
.
post
(
url
)
.
send
({
...
...
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