Authored by biao

update for code validation

@@ -8,7 +8,7 @@ @@ -8,7 +8,7 @@
8 module.exports = { 8 module.exports = {
9 siteUrl: 'http://www.yohobuy.com', 9 siteUrl: 'http://www.yohobuy.com',
10 domains: { 10 domains: {
11 - api: 'http://192.168.102.202:8088/platform', 11 + api: 'http://testapi.yoho.cn:28078/',
12 service: 'http://testservice.yoho.cn:28077/' 12 service: 'http://testservice.yoho.cn:28077/'
13 }, 13 },
14 loggers: { 14 loggers: {
@@ -6,8 +6,8 @@ @@ -6,8 +6,8 @@
6 6
7 'use strict'; 7 'use strict';
8 8
9 -const router = require('express').Router();  
10 -const cRoot = './controllers'; 9 +const router = require('express').Router(); // eslint-disable-line
  10 +// const cRoot = './controllers';
11 11
12 12
13 module.exports = router; 13 module.exports = router;
@@ -24,6 +24,7 @@ class Timer { @@ -24,6 +24,7 @@ class Timer {
24 24
25 if (labelTime) { 25 if (labelTime) {
26 let duration = process.hrtime(labelTime); 26 let duration = process.hrtime(labelTime);
  27 +
27 return this._round(duration[1]); 28 return this._round(duration[1]);
28 } else { 29 } else {
29 this.timers[label] = process.hrtime(); 30 this.timers[label] = process.hrtime();