fix(账单流水): 旧银行流水地址回到账单页 (#1688)

This commit is contained in:
qiuxiang 2026-12-03 13:47:23 +08:00
parent ac6ed8e693
commit 045e5cc393
2 changed files with 21 additions and 0 deletions

View File

@ -1156,6 +1156,14 @@ class Pages extends Controller
]));
}
// 银行账户流水入口已下线,旧地址回到账单流水数据的首个有效页面。
if ($section === 'billing-transactions' && $page === 'bank-transactions') {
return redirect()->route('business.pages.show', [
'section' => $section,
'page' => 'store-receiving-bills',
]);
}
$pages = collect($sectionConfig['pages'] ?? []);
if ($pages->isEmpty()) {

View File

@ -79,6 +79,19 @@ class MarketingAccountBillsTabsTest extends FeatureTestCase
$this->assertContains('vip-promotion', $tabs);
}
public function testRemovedBankTransactionsUrlRedirectsToStoreReceivingBills(): void
{
$this->loginAs()
->get(route('business.pages.show', [
'section' => 'billing-transactions',
'page' => 'bank-transactions',
]))
->assertRedirect(route('business.pages.show', [
'section' => 'billing-transactions',
'page' => 'store-receiving-bills',
]));
}
public function testLegacyMarketingAccountBalanceUrlRedirectsToBalanceMenu(): void
{
$this->allowMarketingAccountBalancePage();