完成40%
This commit is contained in:
@@ -58,8 +58,8 @@ foreach ($token in @('currentStep.value = "ancestor"', 'submitAncestor', 'geneal
|
||||
throw "Missing G03 first-person flow: $token"
|
||||
}
|
||||
}
|
||||
if ($config -notmatch "mode:\s*'mock'" -or $config -notmatch "baseUrl:\s*'https://backend-api\.ddxcjp\.cn'") {
|
||||
throw 'Runtime config must retain mock isolation while owning the new HTTPS backend base URL'
|
||||
if ($config -notmatch "mode:\s*'remote'" -or $config -notmatch "baseUrl:\s*'https://backend-api\.ddxcjp\.cn'") {
|
||||
throw 'Runtime config must enable the requested remote test backend over HTTPS'
|
||||
}
|
||||
if ($config -match '182\.61\.18\.23|http://backend-api\.ddxcjp\.cn|https://backend-api\.ddxcjp\.cn/') {
|
||||
throw 'Runtime config retains an obsolete, insecure or trailing-slash backend URL'
|
||||
@@ -78,20 +78,8 @@ if ($api -match 'if \(isMockMode\(\)\)') {
|
||||
throw 'Auth transports must not treat every non-mock mode as remote'
|
||||
}
|
||||
|
||||
foreach ($token in @(
|
||||
'async auditApplication(genealogyId, applicationId, { status, auditRemark = '''' })',
|
||||
'data: { status, auditRemark }',
|
||||
'payload.relationDesc',
|
||||
'payload.applyReason'
|
||||
)) {
|
||||
if (-not $api.Contains($token)) { throw "G-series API adapter contract missing: $token" }
|
||||
}
|
||||
if ($api.Contains('data: { approved }') -or $api.Contains('payload.message')) {
|
||||
throw 'G-series API adapter retains the deleted approved/message payload contract'
|
||||
}
|
||||
if ($api -notmatch '!/\^\[12\]\$/\.test\(status\)' -or $api -notmatch 'Array\.from\(auditRemark\)\.length > 500') {
|
||||
throw 'G-series audit adapter does not enforce the OpenAPI status pattern or remark length'
|
||||
}
|
||||
# 普通加入申请的旧数字审核体与宽松 adapter 已移交给专项 OpenAPI 门禁;
|
||||
# 页面在后端门禁通过前继续由 G08-G10 合同证明未接入这些遗留方法。
|
||||
if ($createFlow -match 'step=ancestor|query\?\.step') { throw 'G03 first-person flow must not restore the retired route step contract' }
|
||||
if ($createFlow -match 'createPerson') { throw 'G03 must not retain the removed createPerson entrypoint' }
|
||||
foreach ($route in @('pages/family/f04-article-list', 'pages/family/f02-publish-feed')) {
|
||||
|
||||
Reference in New Issue
Block a user