Commit 92a858ca authored by 李尚科's avatar 李尚科

fix

parent 4597fc7a
Pipeline #6527 passed with stage
in 3 seconds
......@@ -143,9 +143,9 @@ class RentalHouseService extends Service {
const region_name = region.name ? region.name : '';
let address = city_name + county_name + region_name + house_basic.address;
let gps_result = await ctx.helper.getGPS(address, city_name);
if (!gps_result) {
if (!gps_result.lat || !gps_result.lng) {
address = city_name + county_name + region_name;
await ctx.helper.getGPS(address, city_name);
gps_result = await ctx.helper.getGPS(address, city_name);
}
let longitude = 0;
let latitude = 0;
......
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