增强后端 TypeScript 严格类型检查
This commit is contained in:
@@ -113,6 +113,13 @@ export async function upsertOpen91PendingOrder(payload: JsonObject = {}, config:
|
||||
}
|
||||
|
||||
const [item] = event.items
|
||||
if (!item) {
|
||||
throw createHttpError('91卡券订单商品明细为空', {
|
||||
statusCode: 400,
|
||||
errorCode: 'open91_order_item_required',
|
||||
})
|
||||
}
|
||||
|
||||
const orderItems = await replaceOrderItems(order.id, [
|
||||
{
|
||||
skuCode: item.skuCode,
|
||||
|
||||
Reference in New Issue
Block a user