接入多发货平台与电子凭证
This commit is contained in:
@@ -3,6 +3,7 @@ import { createOrder, findOrderByPlatformOrderId, getOrderById, updateOrder } fr
|
||||
import { listOrderItemsByOrderId, replaceOrderItems } from '../../../repositories/order-item-repo.js'
|
||||
import { listTasksByOrderId } from '../../../repositories/task-repo.js'
|
||||
import { upsertOrderFromSource } from '../../order/order-service.js'
|
||||
import { bindKuaishouIndustryVouchersToOrderTasks } from '../kuaishou-industry/voucher-binding-service.js'
|
||||
import {
|
||||
OPEN_91_PLATFORM,
|
||||
OPEN_91_PROVIDER,
|
||||
@@ -175,6 +176,10 @@ export async function upsertOpen91PendingOrder(payload: JsonObject = {}, config:
|
||||
updatedAt: now,
|
||||
},
|
||||
])
|
||||
await bindKuaishouIndustryVouchersToOrderTasks(order, [], {
|
||||
source: 'open91_pending_order',
|
||||
now,
|
||||
})
|
||||
|
||||
return {
|
||||
order,
|
||||
|
||||
Reference in New Issue
Block a user