修复店铺状态显示为中文 #593

Merged
DoDo merged 1 commits from fix/WuYongJie-store-status-chinese into main 2026-10-26 14:30:02 +08:00
2 changed files with 5 additions and 1 deletions

View File

@ -262,7 +262,10 @@ SQL);
$page,
$perPage,
$filters,
$this->storesWithAccountOwnership($this->mirror->allStores($storeFilters)),
$this->storesWithAccountOwnership(array_map(
fn (array $row): array => $this->mapStore($row),
$this->mirror->allStores($storeFilters),
)),
);
}

View File

@ -158,6 +158,7 @@ class UpstreamBusinessInformationTest extends TestCase
$this->assertSame('正确店铺负责人', $paginator->items()[0]->store_manager);
$this->assertSame('正确部门负责人', $paginator->items()[0]->department_manager);
$this->assertNotSame('运营总监', $paginator->items()[0]->department_manager);
$this->assertSame('正常', $paginator->items()[0]->store_status);
$summaryCards = collect($this->app['request']->attributes->get('business-page-summary-cards'))->keyBy('label');
$this->assertSame(1, $summaryCards['店铺总数']['value']);
$this->assertSame(1, $summaryCards['正常店铺']['value']);