修改模块

This commit is contained in:
2025-12-10 17:19:01 +08:00
parent 620975c04d
commit 640ec71c74
9 changed files with 1403 additions and 1936 deletions

19
datav/test_proxy.js Normal file
View File

@@ -0,0 +1,19 @@
const http = require('http');
http.get('http://127.0.0.1:8081/api/cattle-market-data', (res) => {
console.log('StatusCode:', res.statusCode);
console.log('Headers:', res.headers);
let data = '';
res.on('data', (chunk) => {
data += chunk;
});
res.on('end', () => {
console.log('Body Length:', data.length);
console.log('Body Preview:', data.substring(0, 500));
});
}).on('error', (e) => {
console.error(e);
});