fix: keep full-chain acceptance aligned with current APIs

This commit is contained in:
2026-09-11 12:36:12 +08:00
parent 1f20516d23
commit 137f8173ab
2 changed files with 5 additions and 3 deletions
@@ -93,8 +93,10 @@ async function captureCompletedOrder(context, containerNo, expectedCustomerId) {
async function loginMerchantForNegativeProbe(context) {
const fixture = context.context?.merchantQualificationFixture
if (!fixture?.username || !fixture?.password) return null
const response = await context.request('POST', '/api/auth/login', { loginId: fixture.username, password: fixture.password }, '')
const username = fixture?.username || context.options?.merchantUsername
const password = fixture?.password || context.options?.merchantPassword
if (!username || !password) return null
const response = await context.request('POST', '/api/auth/login', { loginId: username, password }, '')
const data = success(response) ? response.body?.data : null
context.addStep(MODULE, '本轮客户登录取得海外令牌用于PDA越权反证', response,
success(response) && nonBlank(data?.overseasAccessToken),