mirror of
https://github.com/Wx-2025/ST-Amily2-Chat-Optimisation.git
synced 2026-06-07 13:15:51 +00:00
ci: auto build & obfuscate [2026-04-06 00:50:28] (Jenkins #7)
This commit is contained in:
@@ -1 +1,54 @@
|
||||
'use strict';const _0x53d6b5=_0x4256;(function(_0x37d9cb,_0x2f6c73){const _0x183f3e=_0x4256,_0x3f5447=_0x37d9cb();while(!![]){try{const _0x33bc9b=-parseInt(_0x183f3e(0xbb))/0x1*(parseInt(_0x183f3e(0xba))/0x2)+-parseInt(_0x183f3e(0xa9))/0x3*(-parseInt(_0x183f3e(0xaa))/0x4)+-parseInt(_0x183f3e(0xb6))/0x5*(parseInt(_0x183f3e(0xb5))/0x6)+parseInt(_0x183f3e(0xaf))/0x7*(-parseInt(_0x183f3e(0xb0))/0x8)+parseInt(_0x183f3e(0xad))/0x9+parseInt(_0x183f3e(0xa4))/0xa*(-parseInt(_0x183f3e(0xab))/0xb)+-parseInt(_0x183f3e(0xbc))/0xc*(-parseInt(_0x183f3e(0xa1))/0xd);if(_0x33bc9b===_0x2f6c73)break;else _0x3f5447['push'](_0x3f5447['shift']());}catch(_0x2a6a42){_0x3f5447['push'](_0x3f5447['shift']());}}}(_0x5a81,0x68f8b));const STORAGE_PREFIX=_0x53d6b5(0xa5);function generateJobId(_0x576797){const _0x241f1f=_0x53d6b5;if(!_0x576797)return null;return _0x576797[_0x241f1f(0xb3)]+'_'+_0x576797['size']+'_'+_0x576797[_0x241f1f(0xa0)];}function saveProgress(_0x55b11c,_0x540f89,_0x5dc2fd){const _0x122973=_0x53d6b5;if(!_0x55b11c)return;const _0x4819a1={'processedChunks':_0x540f89,'totalChunks':_0x5dc2fd,'timestamp':Date['now']()};try{localStorage[_0x122973(0xb2)](STORAGE_PREFIX+_0x55b11c,JSON[_0x122973(0xa7)](_0x4819a1)),console['log'](_0x122973(0xa6)+_0x55b11c+_0x122973(0xae)+_0x540f89+'/'+_0x5dc2fd);}catch(_0x114076){console[_0x122973(0xac)](_0x122973(0xb9),_0x114076);}}function _0x4256(_0x31efa6,_0x599c4a){const _0x5a81d7=_0x5a81();return _0x4256=function(_0x4256fa,_0x5565aa){_0x4256fa=_0x4256fa-0xa0;let _0x4ba239=_0x5a81d7[_0x4256fa];return _0x4ba239;},_0x4256(_0x31efa6,_0x599c4a);}function loadProgress(_0x5ef7c4){const _0x591f0b=_0x53d6b5;if(!_0x5ef7c4)return null;try{const _0x31bd71=localStorage['getItem'](STORAGE_PREFIX+_0x5ef7c4);if(_0x31bd71)return console[_0x591f0b(0xb8)](_0x591f0b(0xa6)+_0x5ef7c4+_0x591f0b(0xa8)),JSON[_0x591f0b(0xa2)](_0x31bd71);return null;}catch(_0x5ea920){return console[_0x591f0b(0xac)](_0x591f0b(0xa3)+_0x5ef7c4+'\x20进度失败。',_0x5ea920),null;}}function clearJob(_0x52bc31){const _0x348385=_0x53d6b5;if(!_0x52bc31)return;localStorage[_0x348385(0xb4)](STORAGE_PREFIX+_0x52bc31),console[_0x348385(0xb8)](_0x348385(0xb7)+_0x52bc31+_0x348385(0xb1));}export{generateJobId,saveProgress,loadProgress,clearJob};function _0x5a81(){const _0x145460=['1562643ypePNK','\x20保存进度:\x20','17962YulpnY','2008JNizjJ','\x20的存档。','setItem','name','removeItem','24cGsZQF','230030QGkUiS','[任务总管]\x20已清理任务\x20','log','[任务总管]\x20保存进度失败,可能是localStorage已满。','632902wyqdmM','2wBTTCY','564ptxBJC','lastModified','495469WaIuEG','parse','[任务总管]\x20加载任务\x20','1445010RepxcI','hly_ingestion_job_','[任务总管]\x20已为任务\x20','stringify','\x20找到存档。','378DdEbhs','20588IMUwIv','55EkMRWE','error'];_0x5a81=function(){return _0x145460;};return _0x5a81();}
|
||||
|
||||
|
||||
'use strict';
|
||||
|
||||
const STORAGE_PREFIX = 'hly_ingestion_job_';
|
||||
|
||||
function generateJobId(file) {
|
||||
if (!file) return null;
|
||||
// 使用文件名、大小和最后修改时间来创建一个相对稳定的唯一ID
|
||||
return `${file.name}_${file.size}_${file.lastModified}`;
|
||||
}
|
||||
|
||||
function saveProgress(jobId, processedChunks, totalChunks) {
|
||||
if (!jobId) return;
|
||||
const jobState = {
|
||||
processedChunks,
|
||||
totalChunks,
|
||||
timestamp: Date.now(),
|
||||
};
|
||||
try {
|
||||
localStorage.setItem(STORAGE_PREFIX + jobId, JSON.stringify(jobState));
|
||||
console.log(`[任务总管] 已为任务 ${jobId} 保存进度: ${processedChunks}/${totalChunks}`);
|
||||
} catch (e) {
|
||||
console.error('[任务总管] 保存进度失败,可能是localStorage已满。', e);
|
||||
}
|
||||
}
|
||||
|
||||
function loadProgress(jobId) {
|
||||
if (!jobId) return null;
|
||||
try {
|
||||
const savedState = localStorage.getItem(STORAGE_PREFIX + jobId);
|
||||
if (savedState) {
|
||||
console.log(`[任务总管] 已为任务 ${jobId} 找到存档。`);
|
||||
return JSON.parse(savedState);
|
||||
}
|
||||
return null;
|
||||
} catch (e) {
|
||||
console.error(`[任务总管] 加载任务 ${jobId} 进度失败。`, e);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
function clearJob(jobId) {
|
||||
if (!jobId) return;
|
||||
localStorage.removeItem(STORAGE_PREFIX + jobId);
|
||||
console.log(`[任务总管] 已清理任务 ${jobId} 的存档。`);
|
||||
}
|
||||
|
||||
export {
|
||||
generateJobId,
|
||||
saveProgress,
|
||||
loadProgress,
|
||||
clearJob,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user