fix(账户余额): 刷新每日余额旧缓存 (#1283)
This commit is contained in:
parent
557017b178
commit
381c0e0d03
@ -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] ?? '',
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user