fix(dropship): generate pallet numbers atomically and extend full regressions
This commit is contained in:
@@ -87,8 +87,8 @@ export async function run(context) {
|
||||
`HTTP=${taskResponse.http}, code=${codeOf(taskResponse)}, requestId=${taskResponse.requestId || 'missing'}, traceId=${taskResponse.traceId || 'missing'}`,
|
||||
OPTIONS)
|
||||
|
||||
const containerResponse = await context.request('GET', `${CONTAINERS}/${encodeURIComponent(containerId)}`)
|
||||
const container = context.apiSuccess(MODULE, '回查推送后内部柜次身份', containerResponse, '', OPTIONS)
|
||||
const containerResponse = await context.request('GET', `${CONTAINERS}/domestic/${encodeURIComponent(containerId)}`)
|
||||
const container = context.apiSuccess(MODULE, '回查推送后内部柜次身份', containerResponse, '', OPTIONS)?.container
|
||||
context.assert(MODULE, '推送预装不伪造真实柜号或订舱关联', containerResponse,
|
||||
id(container?.id) === containerId && container?.cabinetNo === fixture.cabinetNo
|
||||
&& container?.containerNo == null && container?.oceanBookingId == null,
|
||||
|
||||
Reference in New Issue
Block a user