fix(admin): 订单列表默认近7天并按支付时间筛选
避免无日期过滤时展示全库,关键词搜索不受日期限制;SSE 插入裁剪并尊重筛选,新单入库优先使用平台支付时间。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -156,7 +156,8 @@ export async function upsertOrderFromSource(
|
||||
: await createOrderWithExecutor(executor, {
|
||||
...basePayload,
|
||||
...mergedPayload,
|
||||
createdAt: now,
|
||||
// 优先用平台支付/成团时间,避免积压同步把历史单排成「刚刚入库」。
|
||||
createdAt: String(event.paidAt || now).trim() || now,
|
||||
updatedAt: now,
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user