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
ce7b5edb
Commit
ce7b5edb
authored
Apr 12, 2019
by
Hsinli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
addd
parent
d3c412c9
Pipeline
#5906
passed with stage
in 2 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
collection.js
app/service/house/collection.js
+4
-1
search_history.js
app/service/house/search_history.js
+4
-1
No files found.
app/service/house/collection.js
View file @
ce7b5edb
...
@@ -65,7 +65,10 @@ class CollectionService extends Service {
...
@@ -65,7 +65,10 @@ class CollectionService extends Service {
ctx
.
failed
(
"empty house id"
);
ctx
.
failed
(
"empty house id"
);
}
}
if
(
!
ctx
.
userId
)
{
if
(
!
ctx
.
userId
)
{
return
[];
return
{
results
:
[],
rowCount
:
0
};
}
}
let
userId
=
ctx
.
userId
;
let
userId
=
ctx
.
userId
;
let
filter
=
{
let
filter
=
{
...
...
app/service/house/search_history.js
View file @
ce7b5edb
...
@@ -7,11 +7,14 @@ const moment = require('moment');
...
@@ -7,11 +7,14 @@ const moment = require('moment');
class
searchHistoryService
extends
Service
{
class
searchHistoryService
extends
Service
{
/**
/**
* 添加
预约信息
* 添加
搜索历史
* @param {object} inputParams
* @param {object} inputParams
*/
*/
async
addSearchHistory
(
inputParams
)
{
async
addSearchHistory
(
inputParams
)
{
const
{
ctx
,
service
}
=
this
;
const
{
ctx
,
service
}
=
this
;
if
(
!
ctx
.
userId
)
{
return
false
;
}
let
data
=
{
let
data
=
{
userId
:
ctx
.
userId
,
userId
:
ctx
.
userId
,
appUserId
:
ctx
.
appUserId
,
appUserId
:
ctx
.
appUserId
,
...
...
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