修正获取github日志bug
This commit is contained in:
parent
093a718677
commit
b2c443b041
2
app.js
2
app.js
|
|
@ -34,7 +34,7 @@ app.use(session({
|
||||||
saveUninitialized: true, //
|
saveUninitialized: true, //
|
||||||
secret: 'ILoveYiJia', // 建议使用 128 个字符的随机字符串
|
secret: 'ILoveYiJia', // 建议使用 128 个字符的随机字符串
|
||||||
cookie: {
|
cookie: {
|
||||||
maxAge: 1 * 24 * 60 * 60 * 1000, // 一天
|
maxAge: 7 * 24 * 60 * 60 * 1000, // 一周
|
||||||
},
|
},
|
||||||
store: new mongoStore({
|
store: new mongoStore({
|
||||||
url: 'mongodb://localhost/mybookmarks'
|
url: 'mongodb://localhost/mybookmarks'
|
||||||
|
|
|
||||||
|
|
@ -1089,7 +1089,7 @@ api.post('/getUpdateLog', function(req, res) {
|
||||||
updateLogs.logs = [];
|
updateLogs.logs = [];
|
||||||
|
|
||||||
$(this).next().children('li').each(function() {
|
$(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 commit = $log.text()
|
||||||
var href = 'https://github.com' + $log.attr('href');
|
var href = 'https://github.com' + $log.attr('href');
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue