优化
This commit is contained in:
@@ -80,7 +80,7 @@ export async function execute(args = process.argv.slice(2), execArgs = process.e
|
||||
context.token = await login(env.CHONGCHONG_ADMIN_USERNAME,env.CHONGCHONG_ADMIN_PASSWORD,'platform')
|
||||
const warehouses = requireSuccess(await context.request('GET','/api/platform/v1/last-leg/overseas-procurements/warehouse-options'))
|
||||
if (!Array.isArray(warehouses) || !warehouses.some(row => String(row.warehouseId) === config.warehouseId)) throw new Error('指定收货仓不在有效采购仓候选中')
|
||||
await prepareCustomer(context,{publishEnvironment:false})
|
||||
await prepareCustomer(context,{publishEnvironment:false,requireDistinctCustomer:false})
|
||||
if (context.steps.some(step => !step.passed)) throw new Error('独立客户准备检查未全部通过')
|
||||
const fixture = context.context.merchantQualificationFixture
|
||||
const customerId = String(fixture.tenantId), customerToken = await login(fixture.username,fixture.password,'customer')
|
||||
|
||||
Reference in New Issue
Block a user