Commit 2bf176bd authored by 姚广胤's avatar 姚广胤

改成中文测试

parent 72309a31
...@@ -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: {
......
...@@ -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;
} }
}, },
......
...@@ -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: 'zhuanpan1',
day: date.dateFormat(new Date(), 'yyyy-MM-dd') day: date.dateFormat(new Date(), 'yyyy-MM-dd')
}); });
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment