diff --git a/modules/EcommerceFinance/AccountBillColumns.php b/modules/EcommerceFinance/AccountBillColumns.php index c0bd07f8..98621132 100644 --- a/modules/EcommerceFinance/AccountBillColumns.php +++ b/modules/EcommerceFinance/AccountBillColumns.php @@ -106,7 +106,7 @@ class AccountBillColumns ], 'jd-transactions' => [ - 'title' => '京东流水', + 'title' => '京东账单', 'columns' => [ ['记录编码', 'record_code', 'num'], ['店铺', 'store_name', 'text'], diff --git a/modules/EcommerceFinance/Http/Controllers/AccountBills.php b/modules/EcommerceFinance/Http/Controllers/AccountBills.php index d4ce3a67..88c0a39f 100644 --- a/modules/EcommerceFinance/Http/Controllers/AccountBills.php +++ b/modules/EcommerceFinance/Http/Controllers/AccountBills.php @@ -378,7 +378,7 @@ class AccountBills extends Controller private function mirrorLabel(string $billType): string { return match ($billType) { - 'jd-transactions' => '京东日账单', + 'jd-transactions' => '京东账单', 'jd-wallet' => '京东钱包', 'pinduoduo' => '拼多多', 'dewu' => '得物', diff --git a/tests/Unit/EcommerceFinance/JdDailyBillTest.php b/tests/Unit/EcommerceFinance/JdDailyBillTest.php index de7bfe5d..ee91e713 100644 --- a/tests/Unit/EcommerceFinance/JdDailyBillTest.php +++ b/tests/Unit/EcommerceFinance/JdDailyBillTest.php @@ -49,6 +49,7 @@ class JdDailyBillTest extends TestCase $this->assertSame(2, $repo->paginate(['store_name' => '测试京东店', 'bill_item' => '货款'], 'income', 'desc', 1, 10)['total']); $this->assertSame(['测试京东店'], $repo->filterOptions()['shops']); $this->assertSame(['2026-08'], $first['sync']['periods']); + $this->assertSame('京东账单', AccountBillColumns::for('jd-transactions')['title']); $this->assertNotContains('balance', array_column(AccountBillColumns::for('jd-transactions')['columns'], 'field')); }