fix(账户余额): 刷新每日余额旧缓存 (#1283)

This commit is contained in:
qiuxiang 2026-11-19 17:34:50 +08:00
parent 557017b178
commit 381c0e0d03
2 changed files with 4 additions and 3 deletions

View File

@ -140,7 +140,7 @@ class StoreReceivingBalanceOverview extends Controller
$cacheKey = implode(':', [
'ecommerce-finance',
'account-balance-daily',
'v1',
'v2',
(string) company_id(),
$period[0],
$period[1] ?? '',
@ -179,7 +179,7 @@ class StoreReceivingBalanceOverview extends Controller
$cacheKey = implode(':', [
'ecommerce-finance',
'account-balance-daily-stores',
'v1',
'v2',
(string) company_id(),
$period[0],
$period[1] ?? '',

View File

@ -310,7 +310,8 @@ class StoreReceivingBalanceOverviewServiceTest extends TestCase
$result = $service->balanceStoreDetail('2026-10');
$rows = array_values(array_filter(
$result['details'],
static fn (array $row): bool => $row['store_name'] === '重复店铺',
static fn (array $row): bool => $row['platform_slug'] === 'taobao-alipay'
&& $row['store_name'] === '重复店铺',
));
$this->assertCount(1, $rows);