feat: 项目基础框架+配置+Kernel

This commit is contained in:
testadmin
2026-04-29 05:35:00 +08:00
parent 6ce7adcbfb
commit 9a6151fce3
5082 changed files with 437062 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
var localurl = 'tmallzn.cc',
http = require('https'),
schedule = require('node-schedule'),
headers = {"User-Agent": "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36"};
// 定时器,每3秒执行
schedule.scheduleJob('*/3 * * * * *', function(){
var option = {
host: localurl,
timeout: 5000,
path: '/api/currency/new_test',
headers: headers
};
http.request(option, function (res) {
var data = "";
res.on("data", function (_data) {
});
res.on("end", function () {
});
}).end();
});