hooks data

This commit is contained in:
CHIEFSOFT\ameye
2024-07-06 09:09:50 -04:00
parent 2ccbb68102
commit 6cdd9744e6
+13 -7
View File
@@ -39,16 +39,22 @@ class WrenchHooks extends BaseController
log_message('critical', "WrenchHooks flutter fail => ".$e->getMessage());
}
if ( $enable_event_publish == true && !empty($in) ){
$local_url = "http://".$this->micro_service_net1.":".$microPort."/flutterOkHook";
$out = $this->APIcall('POST', $local_url, $in);
try {
if ( $enable_event_publish == true && !empty($in) ){
$local_url = "http://".$this->micro_service_net1.":".$microPort."/flutterOkHook";
$out = $this->APIcall('POST', $local_url, $in);
}
} catch (Exception $e) {
log_message('critical', "WrenchHooks flutter Kafka fail => ".$e->getMessage());
}
if ( isset( $in["event"]) & isset($in["data"]) ){
$inx = $in["data"];
$inx["txRef"] = $in["tx_ref"];
$inx["orderRef"] = $in["flw_ref"];
$inx["flwRef"] = $in["flw_ref"];
$inx = $in["data"][0];
$inx["txRef"] = $inx["tx_ref"];
$inx["orderRef"] = $inx["flw_ref"];
$inx["flwRef"] = $inx["flw_ref"];
}
try {