优化
This commit is contained in:
@@ -244,7 +244,7 @@ async function createSecondCustomer(context) {
|
||||
const fixture = context.context?.merchantQualificationFixture
|
||||
if (!fixture?.tenantId || !fixture?.username || !fixture?.password || fixture.marker !== context.marker) return null
|
||||
const loginResponse = await context.request('POST', '/api/auth/login',
|
||||
{ username: fixture.username, password: fixture.password }, '')
|
||||
{ loginId: fixture.username, password: fixture.password }, '')
|
||||
const login = context.apiSuccess(MODULE, '第二隔离客户登录', loginResponse, diagnostic(loginResponse), OPTIONS)
|
||||
return { customerId: id(fixture.tenantId), token: login?.accessToken }
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user