Authored by 邱骏

修改

... ... @@ -41,7 +41,7 @@ class Y100Model extends global.yoho.BaseModel {
sql += ' and AAY.top = 1';
}
sql += ' LIMIT :start, :page';
console.log(sql, actId, pageNo, pageSize, tag);
return mysqlCli.query(sql, params);
}
... ...
... ... @@ -9,12 +9,12 @@ const auth = require('../../doraemon/middleware/auth');
const article = require('./controllers/article');
const y100 = require('./controllers/y100');
router.post('/like', article.like);
router.get('/list', article.list);
router.get('/listNoImg', article.listNoImg);
router.get('/listNoUser', article.listNoUser);
router.post('/publish', auth, article.publish);
router.post('/saveScore', article.publishWithNoImg);
router.post('/like', article.like); // 点赞
router.get('/list', article.list); // 文章列表
router.get('/listNoImg', article.listNoImg); // 无图文章列表
router.get('/listNoUser', article.listNoUser); // 无用户文章列表
router.post('/publish', auth, article.publish); // 发布文章
router.post('/saveScore', article.publishWithNoImg); // 发布无图文章
router.get('/listScore', article.listWithUser);
router.get('/querySingle', article.querySingle);
router.get('/queryByCodeName', article.queryByCodeName);
... ...
module.exports = ['_migration', '20170913102356', '20170927092926',
'20171025145423', '20171102104558', '20171115144710', '20180131104311',
'20180314145616'];
'20171025145423', '20171102104558', '20171115144710', '20180131104311'];
... ...