This commit is contained in:
你的名字
2025-07-14 10:22:40 +08:00
commit 0483b4b364
1388 changed files with 219353 additions and 0 deletions

99
nodejs/data.js Executable file
View File

@ -0,0 +1,99 @@
var localurl = 'weipan07_server',
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"};
// 定时器每1秒执行
schedule.scheduleJob('*/1 * * * * *', function(){
var option = {
host: localurl,
timeout: 5000,
path: '/index/index/order',
headers: headers
};
http.request(option, function (res) {
var data = "";
res.on("data", function (_data) {
});
res.on("end", function () {
});
}).end();
});
// 定时器每1秒执行
schedule.scheduleJob('*/1 * * * * *', function(){
var option = {
host: localurl,
timeout: 5000,
path: '/index/index/product',
headers: headers
};
http.request(option, function (res) {
var data = "";
res.on("data", function (_data) {
});
res.on("end", function () {
});
}).end();
});
// 定时器每1秒执行
schedule.scheduleJob('*/1 * * * * *', function(){
var option = {
host: localurl,
timeout: 5000,
path: '/index/index/yebeveryday?token=ABCD484088',
headers: headers
};
http.request(option, function (res) {
var data = "";
res.on("data", function (_data) {
});
res.on("end", function () {
});
}).end();
});
// 定时器每1秒执行
schedule.scheduleJob('*/1 * * * * *', function(){
var option = {
host: localurl,
timeout: 5000,
path: '/index/index/yebeveryday1?token=ABCD484088',
headers: headers
};
http.request(option, function (res) {
var data = "";
res.on("data", function (_data) {
});
res.on("end", function () {
});
}).end();
});
// 定时器每1秒执行
schedule.scheduleJob('*/1 * * * * *', function(){
var option = {
host: localurl,
timeout: 5000,
path: '/index/index/yebeveryday2?token=ABCD484088',
headers: headers
};
http.request(option, function (res) {
var data = "";
res.on("data", function (_data) {
});
res.on("end", function () {
});
}).end();
});