Commit f1ba5976 authored by Hsinli's avatar Hsinli

addd

parent 49ebfb07
......@@ -81,7 +81,7 @@ module.exports = app => {
router.get('/v2/new_house/list/recommend/', 'house.v2.newHouse.getRecommendNewHouses');//推荐的新房楼盘 基本可通用
//关注
router.post('/v2/collection', 'house.v2.collection.addCollection');//关注
router.post('/v2/collection', loginAuth, 'house.v2.collection.addCollection');//关注
router.get('/v2/collection/list', loginAuth, 'house.v2.collection.getCollectionList');//关注列表
router.put('/v2/collection', loginAuth, 'house.v2.collection.unCollection');//取消关注
......
......@@ -12,7 +12,10 @@ class CollectionService extends Service {
*/
async addCollection(inputParams) {
const { ctx } = this;
if (!ctx.appUserId || !ctx.deviceId || !ctx.deviceLoginId || !ctx.userId) {
//如果没有登录就不做处理
return ret;
}
let filter = {
where: {
state: 1,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment