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
52587992
Commit
52587992
authored
Apr 26, 2019
by
李尚科
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
ea7fc96e
Pipeline
#6558
passed with stage
in 3 seconds
Changes
2
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
rental_house.js
app/service/house/rental_house.js
+1
-0
rental_house.js
app/service/house_common/rental_house.js
+1
-0
No files found.
app/service/house/rental_house.js
View file @
52587992
...
...
@@ -94,6 +94,7 @@ class RentalHouseService extends Service {
},],
}
const
rental_houses_results
=
await
ctx
.
service
.
houseCommon
.
rentalHouse
.
all
(
filter
);
let
rental_houses
=
await
this
.
formatRentalHouseBasic
(
rental_houses_results
.
results
);
rental_houses
=
R
.
project
([
'id'
,
'image'
,
'name'
,
'address'
,
'price'
,
'tags'
,
'favourable_info'
])(
rental_houses
);
return
{
results
:
rental_houses
,
count
:
rental_houses_results
.
rowCount
};
...
...
app/service/house_common/rental_house.js
View file @
52587992
...
...
@@ -32,6 +32,7 @@ class RentalHouseService extends Service {
console
.
info
(
data
);
ctx
.
logger
.
info
(
'rentalhouse_list_conditions: '
+
JSON
.
stringify
(
data
));
const
result
=
await
ctx
.
helper
.
send_request
(
this
.
config
.
HOUSE_SERVICE_API
+
'/v1/rentalhouse/list'
,
data
,
{
method
:
'POST'
,
dataType
:
'json'
});
ctx
.
logger
.
info
(
'rentalhouse_list_result: '
+
JSON
.
stringify
(
result
.
data
));
if
(
result
.
status
!==
200
)
{
let
err
=
''
;
if
(
typeof
(
result
.
data
)
!==
'string'
)
{
...
...
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