1
This commit is contained in:
@@ -57,14 +57,14 @@ class UpdateShipInfoCommand extends Command
|
||||
$errorCount++;
|
||||
continue;
|
||||
}
|
||||
|
||||
// 保存当前船舶信息到历史表
|
||||
$this->saveToHistory($ship);
|
||||
|
||||
|
||||
// 更新船舶信息
|
||||
$updateData = $this->mapApiDataToShip($apiData);
|
||||
$ship->fill($updateData);
|
||||
$ship->save();
|
||||
|
||||
// 保存当前船舶信息到历史表
|
||||
$this->saveToHistory($ship);
|
||||
|
||||
$output->writeln("成功");
|
||||
$successCount++;
|
||||
|
||||
Reference in New Issue
Block a user