From 27a3f564edb063b140f10286f0c46533831eceef Mon Sep 17 00:00:00 2001 From: dzl <786316265@qq.com> Date: Tue, 21 Oct 2025 17:29:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=94=AF=E4=BB=98=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routes/orders.js | 7 +++++-- routes/payment.js | 4 ++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/routes/orders.js b/routes/orders.js index 20d45e1..0fdbd09 100644 --- a/routes/orders.js +++ b/routes/orders.js @@ -1269,6 +1269,9 @@ router.post('/confirm-payment', auth, async (req, res) => { ); } + break; + case 'alipay_wap': + console.log(123465) break; default: await connection.rollback(); @@ -1373,9 +1376,9 @@ router.post('/confirm-payment', auth, async (req, res) => { }); await connection.execute( - `UPDATE orders SET status = 'pending', address = ?, updated_at = NOW(), coupon_record_id = ? + `UPDATE orders SET status = 'pending', address = ?, updated_at = NOW(), coupon_record_id = ?, payment_method = ? WHERE id = ?`, - [addressStr, couponRecordId === undefined ? null : couponRecordId, order_id] + [addressStr, couponRecordId === undefined ? null : couponRecordId, paymentMethod, order_id] ); // 减组合库存 diff --git a/routes/payment.js b/routes/payment.js index 72a82bd..a3cacc1 100644 --- a/routes/payment.js +++ b/routes/payment.js @@ -187,6 +187,10 @@ router.get('/query-status/:outTradeNo', paymentAuth, async (req, res) => { } }); +router.get('/pay-product/test', async (req, res) => { + console.log(123) +}) + /** * 获取用户支付记录 * GET /api/payment/orders