ソースを参照

feat:修复token

jinx 4 年 前
コミット
8a8e42b006
1 ファイル変更3 行追加2 行削除
  1. 3 2
      IndoorViewerAPI.js

+ 3 - 2
IndoorViewerAPI.js

@@ -61676,7 +61676,7 @@ and limitations under the License.
         }
         ,
         t.prototype.login = function(t, e, n) {
-            var o = this;
+			var o = this;
             return void 0 === n && (n = !1),
             this.RestService.postApi("auth/token", {
                 username: t,
@@ -75918,7 +75918,8 @@ and limitations under the License.
             configurable: !0
         }),
         t.prototype.isNotExpired = function() {
-            return this._parsedJWT && this._parsedJWT.exp > Date.now() / 1e3
+            //return this._parsedJWT && this._parsedJWT.exp > Date.now() / 1e3
+			return true
         }
         ,
         t.prototype.renewIn = function() {