备份:修复前完整项目快照 2026-04-19

This commit is contained in:
root
2026-04-19 19:15:01 +08:00
parent 5266d7732b
commit d00f41a120
449 changed files with 89577 additions and 23251 deletions
+33
View File
@@ -0,0 +1,33 @@
const http = require('http');
const options = {
hostname: 'localhost',
port: 3005,
path: '/api/products/template',
method: 'GET'
};
const req = http.request(options, (res) => {
console.log('状态码:', res.statusCode);
console.log('响应头:', JSON.stringify(res.headers, null, 2));
let data = '';
res.on('data', (chunk) => {
data += chunk;
});
res.on('end', () => {
console.log('响应长度:', data.length);
if (res.statusCode === 200) {
console.log('✅ 模板下载API正常工作');
} else {
console.log('❌ 模板下载失败:', data);
}
});
});
req.on('error', (e) => {
console.error('请求失败:', e.message);
});
req.end();