Pu Zhibing
8 天以前 4231cb0417322b6b974210d31ff4cbd8a842da96
UserQYTTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/util/PushUtil.java
@@ -13,6 +13,7 @@
import com.stylefeng.guns.modular.taxi.model.OrderTaxi;
import com.stylefeng.guns.modular.taxi.service.IOrderTaxiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.http.MediaType;
import org.springframework.stereotype.Component;
@@ -29,7 +30,9 @@
@Component
public class PushUtil {
   
   private final String socket_uri = "http://127.0.0.1:6000";
   @Value("${qyt.socket_uri}")
   private String socket_uri;
   @Autowired
   private IOrderTaxiService orderTaxiService;
   
@@ -243,7 +246,7 @@
      }
      
      //计算预计距离和剩余时间
      String value = (String) redisTemplate.opsForValue().get("DRIVER" + String.valueOf(driverId));
      String value = (String) redisTemplate.opsForValue().get("dache:DRIVER" + String.valueOf(driverId));
      if (null == value || "".equals(value)) {
         return;
      }