Forráskód Böngészése

fix(设备分享):设备分享
1. 鉴权异常问题解决

kindring 1 éve
szülő
commit
c5760d5527

+ 3 - 0
src/main/java/com/genersoft/iot/vmp/gb28181/DeviceShare.java

@@ -46,6 +46,9 @@ public class DeviceShare {
         if (device == null) {
             return -1;
         }
+        if (shareCode == null || shareCode.isEmpty()) {
+            return -1;
+        }
         // 判断分享码是否相等
         if(!shareCode.equals(device.getShareCode()))
         {

+ 1 - 1
参考文档/数据库扩展.md

@@ -103,5 +103,5 @@
 | shareCode    | string | ''     | 分享码                            |
 | shareExpires | int    | 1 - 10 | 分享过期时间/分  默认5                  |
 | shareTime    | string | ''     | 分享码创建时间,时间戳,用于计算分享是否过期,主用户操作刷新 |
-| shareState   | int    | 1-3    | 分享状态, 0 未分享 1 分享中              |
+| isShare      | int    | 1-3    | 分享状态, 0 未分享 1 分享中              |
 | playChannel  | string | ""     | 分享播放的通道编码,用于点进去直接播放            |