修改时不做翻译
This commit is contained in:
@@ -173,12 +173,12 @@ class BrandService extends BaseService
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 异步翻译并写入 hs_vehicle_data_translation 表
|
// 异步翻译并写入 hs_vehicle_data_translation 表
|
||||||
(new TranslationService())->queueTranslations(
|
// (new TranslationService())->queueTranslations(
|
||||||
'brand',
|
// 'brand',
|
||||||
$id,
|
// $id,
|
||||||
$sourceLocale,
|
// $sourceLocale,
|
||||||
$sourceFields
|
// $sourceFields
|
||||||
);
|
// );
|
||||||
|
|
||||||
//品牌轮播图
|
//品牌轮播图
|
||||||
$bannersId = [];
|
$bannersId = [];
|
||||||
@@ -204,12 +204,12 @@ class BrandService extends BaseService
|
|||||||
$bannersId[] = $bannerId;
|
$bannersId[] = $bannerId;
|
||||||
}
|
}
|
||||||
|
|
||||||
(new TranslationService())->queueTranslations(
|
// (new TranslationService())->queueTranslations(
|
||||||
'brandBanner',
|
// 'brandBanner',
|
||||||
$bannerId,
|
// $bannerId,
|
||||||
$sourceLocale,
|
// $sourceLocale,
|
||||||
$bannersourceFields
|
// $bannersourceFields
|
||||||
);
|
// );
|
||||||
}
|
}
|
||||||
BrandBannerModel::whereNotIn('id', $bannersId)->where('brand_id',$id)->delete();
|
BrandBannerModel::whereNotIn('id', $bannersId)->where('brand_id',$id)->delete();
|
||||||
|
|
||||||
@@ -237,12 +237,12 @@ class BrandService extends BaseService
|
|||||||
$traitsId[] = $traitId;
|
$traitsId[] = $traitId;
|
||||||
}
|
}
|
||||||
|
|
||||||
(new TranslationService())->queueTranslations(
|
// (new TranslationService())->queueTranslations(
|
||||||
'brandTrait',
|
// 'brandTrait',
|
||||||
$traitId,
|
// $traitId,
|
||||||
$sourceLocale,
|
// $sourceLocale,
|
||||||
$traitsourceFields
|
// $traitsourceFields
|
||||||
);
|
// );
|
||||||
}
|
}
|
||||||
BrandTraitModel::whereNotIn('id', $traitsId)->where('brand_id',$id)->delete();
|
BrandTraitModel::whereNotIn('id', $traitsId)->where('brand_id',$id)->delete();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user