Commit 476804c5 authored by Hsinli's avatar Hsinli

add

parent 5e9d1761
Pipeline #12034 passed with stage
in 19 seconds
...@@ -500,9 +500,9 @@ class NewHouseService extends Service { ...@@ -500,9 +500,9 @@ class NewHouseService extends Service {
}); });
ctx.logger.info(retList); ctx.logger.info(retList);
const city = retList[0].name ? retList[0].name : ''; const city = retList[0] !== null && retList[0].name ? retList[0].name : '';
const county = retList[1].name ? retList[1].name : ''; const county = retList[1] !== null && retList[1].name ? retList[1].name : '';
const region = retList[2].name ? retList[2].name : ''; const region = retList[2] !== null && retList[2].name ? retList[2].name : '';
return { city, county, region }; return { city, county, region };
} }
......
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