This commit is contained in:
Dwi Swandhana
2026-01-30 19:50:40 +07:00
parent 5865d44110
commit 41139d3df5
2 changed files with 97 additions and 35 deletions
+9 -4
View File
@@ -840,7 +840,7 @@ class AstmMessageService
try {
// Ambil pesan ASTM dari kolom 'message' atau yang relevan
$response = $data->rawdt;
if ($data->no_id != ''){
if ($data->alat == 'MGIT' OR $data->alat == 'COM5' OR $data->alat == 'BACTEC'){
$assembled = $this->reassembleAstmFrames($data->rawdt);
$messages = $this->splitBDAstmMessages($assembled);
foreach ($messages as $msg) {
@@ -864,9 +864,14 @@ class AstmMessageService
]
);
} else {
DB::table('lis_phoenix')->where('id', $data->id)->update([
'processed' => 9
]);
$result = $this->processAstmResponse($data->rawdt, $data->alat);
if ($result) {
DataListiner::where('urut', $data->urut)->update([
'processed' => 1
]);
} else {
Log::debug($result);
}
}
} catch (\Exception $e) {
Log::critical($e->getMessage());