mitao
2025-04-14 0852acae13603be95eaaa0b501f3441508ff3fe5
medicalWaste-system/src/main/java/com/sinata/system/service/biz/MonitorDeviceApiNewService.java
@@ -21,6 +21,7 @@
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.TimeUnit;
@Service
@Slf4j
@@ -61,7 +62,7 @@
     */
    public String getJSession(Integer type) {
        String key = "monitor:device:jsession:now";
        String jsession = redisTemplate.opsForValue().get(key).toString();
        String jsession = (String) redisTemplate.opsForValue().get(key);
        Long timeOut = 604800L;
        if (jsession == null || type == 1) {
            String loginUrl = String.format(
@@ -79,7 +80,7 @@
                throw new ServiceException("视频服务器连接失败");
            }
        }
        redisTemplate.opsForValue().set(key, jsession, timeOut);
        redisTemplate.opsForValue().set(key, jsession, timeOut, TimeUnit.SECONDS);
        return jsession;
    }