| | |
| | | String device = jsonCon.getString("device"); |
| | | String version = jsonCon.getString("version"); |
| | | String businessType = jsonCon.getString("businessType");//1:打车,2=代驾 |
| | | String business = "1".equals(businessType) ? "dache" : "daijia"; |
| | | String business = "2".equals(businessType) ? "daijia" : "dache"; |
| | | if(StringUtil.isNotEmpty(userId1)){ |
| | | |
| | | //判断用户或者司机长连接 |
| | |
| | | if(method.equals(Method.location)){ |
| | | Integer driverId = jsonCon.getInteger("driverId"); |
| | | String businessType = jsonCon.getString("businessType");//1:打车,2=代驾 |
| | | String business = "1".equals(businessType) ? "dache" : "daijia"; |
| | | String business = "2".equals(businessType) || null==businessType ? "daijia" : "dache"; |
| | | |
| | | String fluid_control = redisUtil.getValue(business + ":location_" + driverId); |
| | | if(!StringUtils.hasLength(fluid_control)){ |