Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
5
51business
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
方斌
51business
Commits
9f8af8aa
Commit
9f8af8aa
authored
Jun 20, 2019
by
李尚科
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://t-git.51gjj.com/fangbin/51business
parents
2e99b99b
3859a730
Pipeline
#9257
passed with stage
in 4 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
house.js
app/router/house.js
+1
-1
collection.js
app/service/house/v2/collection.js
+4
-1
No files found.
app/router/house.js
View file @
9f8af8aa
...
...
@@ -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'
);
//取消关注
...
...
app/service/house/v2/collection.js
View file @
9f8af8aa
...
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment