From b2c443b0417da9d22be97e7e29f7c8d74586ea96 Mon Sep 17 00:00:00 2001 From: luchenqun Date: Wed, 28 Feb 2018 19:32:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E8=8E=B7=E5=8F=96github?= =?UTF-8?q?=E6=97=A5=E5=BF=97bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.js | 2 +- routes/api.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app.js b/app.js index 60826b6..57ce6f1 100644 --- a/app.js +++ b/app.js @@ -34,7 +34,7 @@ app.use(session({ saveUninitialized: true, // secret: 'ILoveYiJia', // 建议使用 128 个字符的随机字符串 cookie: { - maxAge: 1 * 24 * 60 * 60 * 1000, // 一天 + maxAge: 7 * 24 * 60 * 60 * 1000, // 一周 }, store: new mongoStore({ url: 'mongodb://localhost/mybookmarks' diff --git a/routes/api.js b/routes/api.js index 054272f..a9bbf79 100644 --- a/routes/api.js +++ b/routes/api.js @@ -1089,7 +1089,7 @@ api.post('/getUpdateLog', function(req, res) { updateLogs.logs = []; $(this).next().children('li').each(function() { - var $log = $(this).children('.table-list-cell').eq(1).children('p').children('a'); + var $log = $(this).children('.table-list-cell').eq(0).children('p').children('a'); var commit = $log.text() var href = 'https://github.com' + $log.attr('href');