feat: v3.4.12 ticket iteration

Refund rollback, winery T+3, multi withdraw, mini-user store detail, dev plan batch edit and WeCom dispatch, support ticket edit/attachments/batch status, package imageUrl.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-04 23:53:31 +08:00
parent 71f508e02b
commit 4372018c09
34 changed files with 1032 additions and 86 deletions
@@ -593,6 +593,22 @@ export class TradeService {
try {
refundResult = await this.payProvider.refundOrder(orderId, outRefundNo, remark);
} catch (err) {
await this.prisma.order.update({
where: { id: orderId },
data: { status: fromStatus, payStatus: 'PAID' },
});
await this.prisma.commonEvent.create({
data: buildOrderStatusEvent({
orderId,
fromStatus: 'REFUNDING',
toStatus: fromStatus,
operator: actorType,
remark: `退款发起失败,已恢复:${err instanceof Error ? err.message : String(err)}`.slice(
0,
500,
),
}),
});
this.alert.notify({
level: 'P0',
category: 'pay',