|
@@ -45,11 +45,10 @@ class AssetDeviceJob implements ShouldQueue
|
|
|
$this->settle();
|
|
|
|
|
|
DB::commit();
|
|
|
- //输出信息 测试
|
|
|
- $this->echoMessage(new ConsoleOutput());
|
|
|
+
|
|
|
}catch (\Exception $exception){
|
|
|
DB::rollBack();
|
|
|
- file_put_contents('record_error.txt',date("Y-m-d H:i:s",time()).json_encode($this->data) . PHP_EOL.$exception->getMessage()."line" . $exception->getLine().PHP_EOL,8);
|
|
|
+ file_put_contents('record_error.txt',date("Y-m-d H:i:s",time()).json_encode($this->data) . PHP_EOL.$exception->getMessage()."line" . $exception->getLine().$exception->getFile().PHP_EOL,8);
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -165,6 +164,7 @@ class AssetDeviceJob implements ShouldQueue
|
|
|
"useDept" => $value->useDept ?? "",
|
|
|
"userName" => $value->userName ?? "",
|
|
|
"version" => $value->version ?? "",
|
|
|
+ "crt_time" => $time,
|
|
|
"del_time" => 0,
|
|
|
];
|
|
|
}else{
|