|
|
@@ -892,6 +892,20 @@ const solutionsCleanup = () => {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+/**
|
|
|
+ * 清理更新时间戳
|
|
|
+ */
|
|
|
+const cleanupUpdateTimestamp = () => {
|
|
|
+ const updateTimestamp = GAMES.UpdateTimestamp;
|
|
|
+ const nowTime = Date.now();
|
|
|
+ const expireTime = nowTime - 1000*60;
|
|
|
+ Object.keys(updateTimestamp).forEach(key => {
|
|
|
+ if (updateTimestamp[key] < expireTime) {
|
|
|
+ delete updateTimestamp[key];
|
|
|
+ }
|
|
|
+ });
|
|
|
+}
|
|
|
+
|
|
|
/**
|
|
|
* 定时清理中单方案
|
|
|
* 定时清理盘口信息
|
|
|
@@ -900,6 +914,7 @@ setInterval(() => {
|
|
|
// cleanupBaseList();
|
|
|
solutionsCleanup();
|
|
|
gamesRelationCleanup();
|
|
|
+ cleanupUpdateTimestamp();
|
|
|
}, 1000*30);
|
|
|
|
|
|
/**
|