标题: 这段代码能不能转换
时间: 2021-04-03
var request = require("sync-request");
var atob = require("atob");
var fs = require("fs");
var LocalStorage = require("node-localstorage").LocalStorage;
localStorage = new LocalStorage("./localStorage");
localStorage.removeItem("__pk");
var cookie = "此处填Cookie";
var res = request("POST", "https://域名/api/account/EncCheck", {
headers: {
Cookie: cookie,
},
});
var body = res.getBody("ascii");
new Function(atob(body))();
fs.watchFile("./localStorage/__pk", function (curr, prev) {
if (Date.parse(curr.mtime) != Date.parse(prev.mtime)) {
process.exit(1);
}
});
『回复列表(7|显示机器人聊天)』