API更新

This commit is contained in:
董海洋
2026-06-04 18:43:38 +08:00
parent 89afdbec20
commit 129cf155e1
6 changed files with 17 additions and 15 deletions
+4 -2
View File
@@ -31,13 +31,15 @@ async function getOrders(ctx) {
'goods_name', oi.goods_name,
'price', oi.price,
'quantity', oi.quantity,
'weight', oi.weight,
'Weight', oi.weight,
'subtotal', oi.subtotal,
'unit', oi.unit
'unit', oi.unit,
'image', g.images
)
) as items_json
FROM orders o
LEFT JOIN order_items oi ON o.id = oi.order_id
LEFT JOIN goods g ON oi.goods_id = g.id
WHERE 1=1
`
const params = []