Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuywap-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
biao
9 years ago
Commit
ddd5c0d210f7d27315a4d6ccd04a634ed76862c5
1 parent
9dcf35fc
update for code validation
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
config/common.js
doraemon/router.js
library/timer.js
config/common.js
View file @
ddd5c0d
...
...
@@ -8,7 +8,7 @@
module
.
exports
=
{
siteUrl
:
'http://www.yohobuy.com'
,
domains
:
{
api
:
'http://
192.168.102.202:8088/platform
'
,
api
:
'http://
testapi.yoho.cn:28078/
'
,
service
:
'http://testservice.yoho.cn:28077/'
},
loggers
:
{
...
...
doraemon/router.js
View file @
ddd5c0d
...
...
@@ -6,8 +6,8 @@
'use strict'
;
const
router
=
require
(
'express'
).
Router
();
const
cRoot
=
'./controllers'
;
const
router
=
require
(
'express'
).
Router
();
// eslint-disable-line
// const cRoot = './controllers';
module
.
exports
=
router
;
...
...
library/timer.js
View file @
ddd5c0d
...
...
@@ -24,6 +24,7 @@ class Timer {
if
(
labelTime
)
{
let
duration
=
process
.
hrtime
(
labelTime
);
return
this
.
_round
(
duration
[
1
]);
}
else
{
this
.
timers
[
label
]
=
process
.
hrtime
();
...
...
Please
register
or
login
to post a comment