Commit 52587992 authored by 李尚科's avatar 李尚科

fix

parent ea7fc96e
Pipeline #6558 passed with stage
in 3 seconds
...@@ -94,6 +94,7 @@ class RentalHouseService extends Service { ...@@ -94,6 +94,7 @@ class RentalHouseService extends Service {
},], },],
} }
const rental_houses_results = await ctx.service.houseCommon.rentalHouse.all(filter); const rental_houses_results = await ctx.service.houseCommon.rentalHouse.all(filter);
let rental_houses = await this.formatRentalHouseBasic(rental_houses_results.results); let rental_houses = await this.formatRentalHouseBasic(rental_houses_results.results);
rental_houses = R.project(['id', 'image', 'name', 'address', 'price', 'tags', 'favourable_info'])(rental_houses); rental_houses = R.project(['id', 'image', 'name', 'address', 'price', 'tags', 'favourable_info'])(rental_houses);
return { results: rental_houses, count: rental_houses_results.rowCount }; return { results: rental_houses, count: rental_houses_results.rowCount };
......
...@@ -32,6 +32,7 @@ class RentalHouseService extends Service { ...@@ -32,6 +32,7 @@ class RentalHouseService extends Service {
console.info(data); console.info(data);
ctx.logger.info('rentalhouse_list_conditions: ' + JSON.stringify(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' }); 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) { if (result.status !== 200) {
let err = ''; let err = '';
if (typeof (result.data) !== 'string') { if (typeof (result.data) !== 'string') {
......
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