引入minio

This commit is contained in:
2025-09-02 16:50:35 +08:00
parent e4d4bc5b6a
commit e5ace37c68
12 changed files with 28231 additions and 144 deletions

View File

@@ -43,7 +43,7 @@ router.get('/', async (req, res) => {
// 获取商品列表
const query = `
SELECT id, name, rongdou_price, category, points_price as points, stock, image_url as image, description, status, payment_methods, created_at, updated_at
SELECT id, name, rongdou_price, category, points_price, stock, image_url as image, description, status, payment_methods, created_at, updated_at
FROM products
${whereClause}
ORDER BY created_at DESC
@@ -57,7 +57,6 @@ router.get('/', async (req, res) => {
products.forEach(item=>{
item.payment_methods = JSON.parse(item.payment_methods)
})
console.log('查询结果:', products);
res.json({
success: true,
data: {