Initial commit: ERP system with advance verification fixes

This commit is contained in:
System Administrator
2026-03-25 23:55:36 +07:00
commit 563ca12d76
5920 changed files with 828689 additions and 0 deletions
@@ -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();