修改时不做翻译

This commit is contained in:
2025-06-30 16:02:41 +08:00
parent 26e2f9ab63
commit d8c06f6be6
+18 -18
View File
@@ -173,12 +173,12 @@ class BrandService extends BaseService
}
// 异步翻译并写入 hs_vehicle_data_translation 表
(new TranslationService())->queueTranslations(
'brand',
$id,
$sourceLocale,
$sourceFields
);
// (new TranslationService())->queueTranslations(
// 'brand',
// $id,
// $sourceLocale,
// $sourceFields
// );
//品牌轮播图
$bannersId = [];
@@ -204,12 +204,12 @@ class BrandService extends BaseService
$bannersId[] = $bannerId;
}
(new TranslationService())->queueTranslations(
'brandBanner',
$bannerId,
$sourceLocale,
$bannersourceFields
);
// (new TranslationService())->queueTranslations(
// 'brandBanner',
// $bannerId,
// $sourceLocale,
// $bannersourceFields
// );
}
BrandBannerModel::whereNotIn('id', $bannersId)->where('brand_id',$id)->delete();
@@ -237,12 +237,12 @@ class BrandService extends BaseService
$traitsId[] = $traitId;
}
(new TranslationService())->queueTranslations(
'brandTrait',
$traitId,
$sourceLocale,
$traitsourceFields
);
// (new TranslationService())->queueTranslations(
// 'brandTrait',
// $traitId,
// $sourceLocale,
// $traitsourceFields
// );
}
BrandTraitModel::whereNotIn('id', $traitsId)->where('brand_id',$id)->delete();