Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
warden
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
姚广胤
warden
Commits
2bf176bd
Commit
2bf176bd
authored
Mar 23, 2018
by
姚广胤
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
改成中文测试
parent
72309a31
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
+4
-3
config-prod.js
server/config/config-prod.js
+1
-1
historyDAO.js
server/dao/historyDAO.js
+1
-0
index.js
server/task/index.js
+2
-2
No files found.
server/config/config-prod.js
View file @
2bf176bd
...
@@ -4,7 +4,7 @@ var config = {
...
@@ -4,7 +4,7 @@ var config = {
database
:
'fed_pf_test'
,
// 使用哪个数据库
database
:
'fed_pf_test'
,
// 使用哪个数据库
username
:
'fed'
,
// 用户名
username
:
'fed'
,
// 用户名
password
:
'tuia123'
,
// 口令
password
:
'tuia123'
,
// 口令
host
:
'172.16.80.
91
'
,
// 主机名
host
:
'172.16.80.
122
'
,
// 主机名
port
:
3306
// 端口号,MySQL默认3306
port
:
3306
// 端口号,MySQL默认3306
},
},
cookie
:
{
cookie
:
{
...
...
server/dao/historyDAO.js
View file @
2bf176bd
...
@@ -22,6 +22,7 @@ module.exports = {
...
@@ -22,6 +22,7 @@ module.exports = {
});
});
return
true
;
return
true
;
}
catch
(
e
)
{
}
catch
(
e
)
{
console
.
log
(
e
);
return
false
;
return
false
;
}
}
},
},
...
...
server/task/index.js
View file @
2bf176bd
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: ygy
* @Author: ygy
* @Date: 2018-03-14 19:39:46
* @Date: 2018-03-14 19:39:46
* @Last Modified by: ygy
* @Last Modified by: ygy
* @Last Modified time: 2018-03-23 14:
00:53
* @Last Modified time: 2018-03-23 14:
17:56
*/
*/
const
historyService
=
require
(
'../services/historyService'
);
const
historyService
=
require
(
'../services/historyService'
);
...
@@ -29,7 +29,7 @@ const runTiming = async () => {
...
@@ -29,7 +29,7 @@ const runTiming = async () => {
await
historyService
.
createOne
({
await
historyService
.
createOne
({
result
:
JSON
.
stringify
({
all
:
total
/
(
resultToSave
.
length
||
1
)
}),
result
:
JSON
.
stringify
({
all
:
total
/
(
resultToSave
.
length
||
1
)
}),
owner
:
'test'
,
owner
:
'test'
,
type
:
'
大转盘
1'
,
type
:
'
zhuanpan
1'
,
day
:
date
.
dateFormat
(
new
Date
(),
'yyyy-MM-dd'
)
day
:
date
.
dateFormat
(
new
Date
(),
'yyyy-MM-dd'
)
});
});
};
};
...
...
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