Update main.js

This commit is contained in:
smallfawn
2024-06-28 11:42:34 +08:00
committed by GitHub
parent 8ffecc058a
commit 2ab0a0e92d

View File

@@ -51,10 +51,10 @@ for (let plugin of plugins) {
continue; continue;
} }
} }
let time = new Date().getTime(); let time = new Date();
if (processedCode !== sourceCode) { if (processedCode !== sourceCode) {
// 输出代码 // 输出代码
fs.writeFile(decodeFile, "//" + time + '\n' + processedCode, (err) => { fs.writeFile(decodeFile, "//" + time + '\n' + "Base:https://github.com/echo094/decode-js" + '\n' + "Modify:https://github.com/smallfawn/decode_action" + '\n' + processedCode, (err) => {
if (err) throw err; if (err) throw err;
console.log(`使用插件 ${pluginUsed} 成功处理并写入文件 ${decodeFile}`); console.log(`使用插件 ${pluginUsed} 成功处理并写入文件 ${decodeFile}`);
}); });