Initial commit: ERP system with advance verification fixes
This commit is contained in:
@@ -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();
|
||||
Reference in New Issue
Block a user