优化
This commit is contained in:
@@ -64,7 +64,7 @@ export async function run(context) {
|
||||
'all warehouse role permissions must use platform scope', OPTIONS)
|
||||
|
||||
const unauthorized = await context.request('GET',
|
||||
'/api/platform/v1/first-leg/pda-loading/tasks?containerNo=UNAUTHORIZED&warehouseId=1', undefined, '')
|
||||
'/api/platform/v1/first-leg/pda-loading/tasks?cabinetNo=UNAUTHORIZED&warehouseId=1', undefined, '')
|
||||
context.addStep(MODULE, '未登录访问仓库PDA任务被拒绝', unauthorized,
|
||||
[401, 403].includes(unauthorized.http)
|
||||
|| (unauthorized.http === 200 && ['A0401', 'A0403', '401', '403'].includes(String(unauthorized.body?.code))),
|
||||
|
||||
Reference in New Issue
Block a user