Commit 08790613 by weijiguang

恢复部分代码

parent e94831da
......@@ -76,7 +76,7 @@ public class ApplicationController {
Shop shop = shopService.selectShopById(machine.getShopId());
try {
shop.setDistance(DistanceUtil.getDistanceDesc(Double.parseDouble(shop.getLng()), Double.parseDouble(shop.getLat()), Double.parseDouble(location.getString("lng")), Double.parseDouble(location.getString("lat"))));
} catch (NumberFormatException e) {
} catch (Exception e) {
shop.setDistance("-1");
}
redisJson.put("shop", shop);
......
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