| | |
| | | @Autowired |
| | | private GeodesyUtil geodesyUtil; |
| | | |
| | | @Value("${spring.profiles.active}") |
| | | private String activeProfile; |
| | | |
| | | |
| | | @Override |
| | | public List<Driver> queryIdleDriver(Integer type, Double lon, Double lat, Double distance, Integer companyId) throws Exception { |
| | |
| | | } |
| | | } |
| | | //专车业务需要校验 |
| | | if(0 == driver.getIsSynchronous() && (type.contains("1") || type.contains("3"))){ |
| | | if("prod".equals(activeProfile) && 0 == driver.getIsSynchronous() && (type.contains("1") || type.contains("3"))){ |
| | | return ResultUtil.error("请先开通钱包"); |
| | | } |
| | | //判断车辆是否正在使用中 |