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');