|
|
|
@ -89,7 +89,7 @@ public class ClockService implements IClockService { |
|
|
|
} |
|
|
|
|
|
|
|
//判断经纬度是否正确
|
|
|
|
boolean inCircle = DistanceUtil.isInCircle(site.getLongitude(), site.getLatitude(), clickIn.getLocationLongitude(), clickIn.getLocationLatitude(), "0.1"); |
|
|
|
boolean inCircle = DistanceUtil.isInCircle(site.getLongitude(), site.getLatitude(), clickIn.getLocationLongitude(), clickIn.getLocationLatitude(), "0.8"); |
|
|
|
log.info("是否在半径内:{}", inCircle); |
|
|
|
if (!inCircle) { |
|
|
|
throw new BaseException(CodeEnum.LOCATION_LONG); |
|
|
|
|