Pu Zhibing
2 天以前 1c40baaf9ca0183945b9881d11ceed5aeebc8290
DriverQYTTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/service/impl/DriverServiceImpl.java
@@ -492,6 +492,10 @@
    @Override
    public Map<String, Object> queryPhone(String code) throws Exception {
        Map<String, Object> map = new HashMap<>();
        if(ToolUtil.isEmpty(code)){
            map.put("phone","400-995-1700");
            return map;
        }
        OpenCity openCity = openCityService.openCity1(code);
        Phone phone = phoneMapper.queryInfo(openCity.getId(), 2, 2);
        map.put("phone", null != phone ? phone.getPhone() : "");
@@ -639,9 +643,9 @@
                }
            }
            //专车业务需要校验
//            if(0 == driver.getIsSynchronous() && type.contains("1")){
//                return ResultUtil.error("请先开通钱包");
//            }
            if(0 == driver.getIsSynchronous() && (type.contains("1") || type.contains("3"))){
                return ResultUtil.error("请先开通钱包");
            }
            //判断车辆是否正在使用中
            Car car = carService.selectById(driver.getCarId());
            if(car.getUseDriverId() != null && !car.getUseDriverId().equals(uid)){