|
|
@@ -1,5 +1,6 @@
|
|
|
package com.zhiqiyun.open.core.video.impl;
|
|
|
|
|
|
+import cn.hutool.crypto.SecureUtil;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.google.common.collect.Maps;
|
|
|
import com.zhiqiyun.open.core.video.VideoDockingService;
|
|
|
@@ -39,6 +40,7 @@ public class VideoDockingServiceImpl implements VideoDockingService {
|
|
|
|
|
|
// public final static String URI = "https://222.84.250.39:9800";
|
|
|
public final static String URI = "https://172.169.12.21:18531";
|
|
|
+// public final static String URI = "https://10.37.113.208:18531";
|
|
|
|
|
|
public final static String VIDEO_JSESSIONID_TOKEN = "VIDEO_JSESSIONID_TOKEN:%s";
|
|
|
|
|
|
@@ -50,7 +52,8 @@ public class VideoDockingServiceImpl implements VideoDockingService {
|
|
|
|
|
|
@Override
|
|
|
public String getValidToken() throws Exception {
|
|
|
- BoundValueOperations<String, String> boundValueOperations = this.redisTemplate.boundValueOps(String.format(VIDEO_JSESSIONID_TOKEN, USER_NAME_Urban));
|
|
|
+ String name = SecureUtil.md5(URI + "_" + USER_NAME_Urban);
|
|
|
+ BoundValueOperations<String, String> boundValueOperations = this.redisTemplate.boundValueOps(String.format(VIDEO_JSESSIONID_TOKEN, name));
|
|
|
String token = boundValueOperations.get();
|
|
|
if (StringUtils.isBlank(token) || !token.contains("JSESSIONID")) {
|
|
|
Map<String, Object> paramValues = new HashMap<>(2);
|