修改时不翻译
This commit is contained in:
@@ -6,6 +6,7 @@ use app\console\model\DraftsModel;
|
||||
use app\console\model\VehicleApplyModel;
|
||||
use app\apis\model\VehicleAlbumModel;
|
||||
use app\console\model\VehicleDataModel;
|
||||
use app\console\model\VehicleDataTranslationModel;
|
||||
use app\mzl\common\org\XunfeiFanyi;
|
||||
use app\mzl\common\services\BaseService;
|
||||
use Illuminate\Database\Eloquent\Builder;
|
||||
@@ -243,10 +244,17 @@ class VehicleDataService extends BaseService
|
||||
}
|
||||
|
||||
// 异步翻译并写入 hs_vehicle_data_translation 表
|
||||
(new TranslationService())->queueTranslations(
|
||||
'vehicle',
|
||||
$id,
|
||||
$sourceLocale,
|
||||
// (new TranslationService())->queueTranslations(
|
||||
// 'vehicle',
|
||||
// $id,
|
||||
// $sourceLocale,
|
||||
// $sourceFields
|
||||
// );
|
||||
VehicleDataTranslationModel::updateOrCreate(
|
||||
[
|
||||
'vehicle_id' => $id,
|
||||
'locale' => $sourceLocale,
|
||||
],
|
||||
$sourceFields
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user