修bug
This commit is contained in:
@@ -1373,9 +1373,9 @@ router.post('/confirm-payment', auth, async (req, res) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
await connection.execute(
|
await connection.execute(
|
||||||
`UPDATE orders SET status = 'pending', address = ?, updated_at = NOW()
|
`UPDATE orders SET status = 'pending', address = ?, updated_at = NOW(), coupon_record_id = ?
|
||||||
WHERE id = ?`,
|
WHERE id = ?`,
|
||||||
[addressStr, order_id]
|
[addressStr, couponRecordId === undefined ? null : couponRecordId, order_id]
|
||||||
);
|
);
|
||||||
|
|
||||||
// 减组合库存
|
// 减组合库存
|
||||||
|
|||||||
Reference in New Issue
Block a user