英文下拉

This commit is contained in:
2025-03-25 09:06:08 +08:00
parent 06f2531ec0
commit 6184f69ddd
6 changed files with 49 additions and 6 deletions
+7
View File
@@ -16,6 +16,13 @@ class CarTypeController
public function getAll(Request $request)
{
$list = CarType::getAll();
if($request->user['language'] != 'zh_CN'){
foreach ($list as $key => &$value) {
$value['name'] = $value['name_en'];
}
}
return Util::success($list);
}