Huya Timestamp (#1086)

This commit is contained in:
SettingDust 2018-11-07 21:14:50 +08:00 committed by DIYgod
parent 3836d4bf27
commit 0a6907dbe8
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ module.exports = async (ctx) => {
const $ = cheerio.load(response.data);
const timestamp = parseInt(response.data.match(/"startTime":(\d+)/)[1]);
const timestamp = parseInt(response.data.match(/"startTime":"?(\d+)/)[1]) * 1000;
let item;
if (response.data.match(/"isOn":(\w{4})/)[1] === 'true') {