优化
This commit is contained in:
@@ -103,7 +103,7 @@ export async function run(context) {
|
||||
const clearance = await context.request('GET', `${CONTAINERS}/${encodeURIComponent(containerId)}/clearance`)
|
||||
context.assert(MODULE, '国内未出仓时目的港清关不生成国外工作台数据', clearance,
|
||||
clearance.http === 200 && String(clearance?.body?.code) === 'A0404'
|
||||
&& String(clearance?.body?.message || '').includes('国外工作台货柜不存在'),
|
||||
&& clearance?.body?.message === '货柜尚未离仓或实际开船,不能维护目的港清关资料',
|
||||
`HTTP=${clearance.http}, code=${clearance?.body?.code ?? 'missing'}, containerBookingId=${containerId}`, OPTIONS)
|
||||
const customs = await context.request('GET', `/api/platform/v1/first-leg/loading-lists/${encodeURIComponent(planId)}/customs?warehouseId=${encodeURIComponent(warehouseId)}`)
|
||||
if (fixture?.finalStatus === 'LOADED') {
|
||||
|
||||
Reference in New Issue
Block a user