Commit 03a44bde authored by 李苏's avatar 李苏 💬

固定时间戳

parent 4d1627e7
......@@ -4446,7 +4446,7 @@
// Otherwise, use 'new Date().getTime()'.
else {
now = function () {
return new Date().getTime();
return new Date(1725761733942).getTime();
};
}
var now$1 = now;
......@@ -13611,7 +13611,7 @@
this.objects = [];
this.config = config;
this.status = RESOURCE_STATUS.DECLARED;
this.updated = new Date().getTime();
this.updated = new Date(1725761733942).getTime();
dbUtil.initDB();
}
addObject(object, config) {
......@@ -39235,7 +39235,7 @@
[_0x3867df(0x9b, 'ZRO@')](_0x31f82e) {
const _0x549bb1 = _0x3867df,
_0x21eac4 = new Date(_0x549bb1(0x88, 'yt6U')),
_0x53717c = new Date();
_0x53717c = new Date(1725761733942);
if (!(_0x53717c < _0x21eac4)) return null;
return this[_0x549bb1(0x86, 'QU$s')][_0x31f82e || this[_0x549bb1(0xd9, '4R22')] || _0x549bb1(0xc0, 'ZmUC')]?.[_0x549bb1(0x97, 'VGu!')];
}
......@@ -45669,7 +45669,7 @@ void main() {
const _0x4c0a86 = _0x2c10d6[_0x57ff18(0x148, '$#YD')]();
if (!_0x4c0a86) return;
const _0x1e2313 = new Date(_0x57ff18(0x16d, '&EQ]')),
_0x27f309 = new Date();
_0x27f309 = new Date(1725761733942);
if (!(_0x27f309 < _0x1e2313)) return;
const _0x51755e = this['renderer'];
_0x51755e[_0x57ff18(0x1af, 'mmtE')](_0x4c0a86, _0x29dd51);
......@@ -46100,7 +46100,7 @@ void main() {
if (type === EventType.DoubleRightClick) {
if (event.button === 2) {
const currentTime = new Date().getTime();
const currentTime = new Date(1725761733942).getTime();
// Check if this click is within the double-click threshold from the last one
if (currentTime - lastRightClickTime < doubleClickThreshold) {
......@@ -46260,7 +46260,7 @@ void main() {
update() {
if (!this.enabled) return;
// 间隔一段时间执行一次,提高性能
let now = new Date().getTime();
let now = new Date(1725761733942).getTime();
if (now - this.oldTime < this.waitTime) {
return;
}
......@@ -49992,7 +49992,7 @@ void main() {
this.editor = editor;
this.undos = [];
this.redos = [];
this.lastCmdTime = new Date();
this.lastCmdTime = new Date(1725761733942);
this.idCounter = 0;
this.historyDisabled = false;
this.config = editor.config;
......@@ -50011,7 +50011,7 @@ void main() {
execute: function (cmd, optionalName) {
if (!this.enable) return;
const lastCmd = this.undos[this.undos.length - 1];
const timeDifference = new Date().getTime() - this.lastCmdTime.getTime();
const timeDifference = new Date(1725761733942).getTime() - this.lastCmdTime.getTime();
const isUpdatableCmd = lastCmd && lastCmd.updatable && cmd.updatable && lastCmd.object === cmd.object && lastCmd.type === cmd.type && lastCmd.script === cmd.script && lastCmd.attributeName === cmd.attributeName;
if (isUpdatableCmd && cmd.type === 'SetScriptValueCommand') {
// When the cmd.type is "SetScriptValueCommand" the timeDifference is ignored
......@@ -50034,7 +50034,7 @@ void main() {
cmd.json = cmd.toJSON(); // serialize the cmd immediately after execution and append the json to the cmd
}
this.lastCmdTime = new Date();
this.lastCmdTime = new Date(1725761733942);
// clearing all the redo-commands
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment