Commit 9f8af8aa authored by 李尚科's avatar 李尚科
parents 2e99b99b 3859a730
Pipeline #9257 passed with stage
in 4 seconds
...@@ -81,7 +81,7 @@ module.exports = app => { ...@@ -81,7 +81,7 @@ module.exports = app => {
router.get('/v2/new_house/list/recommend/', 'house.v2.newHouse.getRecommendNewHouses');//推荐的新房楼盘 基本可通用 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.get('/v2/collection/list', loginAuth, 'house.v2.collection.getCollectionList');//关注列表
router.put('/v2/collection', loginAuth, 'house.v2.collection.unCollection');//取消关注 router.put('/v2/collection', loginAuth, 'house.v2.collection.unCollection');//取消关注
......
...@@ -12,7 +12,10 @@ class CollectionService extends Service { ...@@ -12,7 +12,10 @@ class CollectionService extends Service {
*/ */
async addCollection(inputParams) { async addCollection(inputParams) {
const { ctx } = this; const { ctx } = this;
if (!ctx.appUserId || !ctx.deviceId || !ctx.deviceLoginId || !ctx.userId) {
//如果没有登录就不做处理
return ret;
}
let filter = { let filter = {
where: { where: {
state: 1, 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