hooks data
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user