update
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user