From 77aa4cb50be2f740ef2349617b4c88e9c8662312 Mon Sep 17 00:00:00 2001 From: xcbyy <2578898740@qq.com> Date: Wed, 21 Oct 2026 15:16:03 +0800 Subject: [PATCH] =?UTF-8?q?feat(order):=20=E5=B9=B3=E5=8F=B0=E6=B4=BE?= =?UTF-8?q?=E5=8D=95=E9=97=AD=E7=8E=AF=EF=BC=88=E5=8F=91=E9=9C=80=E6=B1=82?= =?UTF-8?q?=E5=8D=95=E8=BF=9B=E5=85=A5=E5=BE=85=E6=8E=A5=E5=8D=95=E6=B1=A0?= =?UTF-8?q?=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 下单页新增「指定大神 / 平台派单」模式:平台派单填品类、预算、地点/选点,expertId=0 - 服务端:平台派单单据支付后进入待接单池(余额支付即时入池,微信支付确认后入池),预算由买家出价但受 1~2000 元/小时约束 - 抢单由认领大神写入 expert_id 并转履约中;30 分钟无人接单沿用自动全额退款 - 修复订单 INSERT 占位符少一个导致下单报 Column count doesn't match 的问题,并新增列数/占位符一致性护栏 - 111 套件/737 用例全绿;线上 1 元实测:下单→待接单→池内 640m,测试数据已回滚 --- pwuniapp/pages/order/create.vue | 157 +++++++++++++++++- server/src/db/repository.ts | 47 ++++-- server/src/index.ts | 16 +- server/tests/payment-amount-integrity.spec.ts | 2 +- server/tests/platform-dispatch.spec.ts | 63 +++++++ server/tests/settlement-gate.spec.ts | 4 +- 6 files changed, 257 insertions(+), 32 deletions(-) create mode 100644 server/tests/platform-dispatch.spec.ts diff --git a/pwuniapp/pages/order/create.vue b/pwuniapp/pages/order/create.vue index 47c5a92..6440778 100644 --- a/pwuniapp/pages/order/create.vue +++ b/pwuniapp/pages/order/create.vue @@ -1,7 +1,21 @@