🎈 perf(加密): 推送的kv不每次加密而是缓存

This commit is contained in:
luying
2022-12-07 10:52:01 +08:00
parent a83deeff5f
commit e46228d09b
10 changed files with 109 additions and 14 deletions

View File

@@ -12,6 +12,7 @@ import { savePvpSeasonMemory } from '../../../services/log/memoryLogService';
import { setApiIsClose } from '../../../services/chatService';
import { setPvpSeasonNum, setPvpSettleSeasonNum } from '../../../services/timeTaskService';
import { setHiddenData } from '../../../services/dataService';
import { setKvToMemory } from '../../../services/pushService';
export default function (app: Application) {
new HandlerService(app, {});
@@ -193,4 +194,12 @@ export class ConnectorRemote {
errlogger.error(`remote ${__filename} \n ${e.stack}`);
}
}
public async setKvToMemory(originK: string, originV: string, aesKey: string, aesIV: string, now: number) {
try {
setKvToMemory(originK, originV, aesKey, aesIV, now);
} catch(e) {
errlogger.error(`remote ${__filename} \n ${e.stack}`);
}
}
}