Commit 5839b042 authored by 李尚科's avatar 李尚科

fix

parent d4bd4010
Pipeline #14107 passed with stage
in 18 seconds
......@@ -25,7 +25,9 @@ class LocationController extends Controller {
const ip_ret = await ctx.service.course.lbs.getLBSIp();
const ip = ip_ret.result;
if (ip.location && ip.ad_info) {
address = ip.ad_info.province + ip.ad_info.city ? ip.ad_info.city : '' + ip.ad_info.district ? ip.ad_info.district : '';
const city = ip.ad_info.city ? ip.ad_info.city : '';
const district = ip.ad_info.district ? ip.ad_info.district : '';
address = ip.ad_info.province + city + district;
lat = ip.location.lat;
lng = ip.location.lng;
}
......
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