added air call

This commit is contained in:
CHIEFSOFT\ameye
2024-10-31 09:00:31 -04:00
parent 7932d897b8
commit 3763b125dc
3 changed files with 12 additions and 5 deletions
+6
View File
@@ -91,6 +91,12 @@ define('EVENT_PRIORITY_NORMAL', 100);
/**
* @deprecated Use \CodeIgniter\Events\Events::PRIORITY_HIGH instead.
*/
const CARD_REQUESTED =0;
const CARD_HOLDER_CREATED = 10;
const CARD_OWNER_ACTIVE = 30;
const CARD_ASSIGNED = 40;
define('EVENT_PRIORITY_HIGH', 10);
define('WRB_JOB_CRONJOB',770);
+5 -5
View File
@@ -112,19 +112,19 @@ class AirFlow extends BaseController
return []; //json_encode( $final_out );
}
const CARD_REQUESTED =0;
const CARD_HOLDER_CREATED = 10;
const CARD_OWNER_ACTIVE = 30;
const CARD_ASSIGNED = 40;
public function flowStripeCard():array{
$raw_json = file_get_contents('php://input');
$in = json_decode($raw_json, true);
$out =[];
/* GET LIST IN THE LIMIT AT STATUS */
$in['limit'] = 2;
$in['status'] = CARD_REQUESTED;
$local_url = "http://".$this->micro_service_net1.":3038/createCardHolder";
$out = $this->APIcall('POST', $local_url, $in);
log_message('critical', "AirFlow::flowStripeCard ********* ALL ".serialize($out) );
/*
if ( $out['request_id'] !='' && $out['request_uid'] !=''){
+1
View File
@@ -51,6 +51,7 @@ class WrenchAuth extends BaseController
$out_redis = $this->getCache($fail_endpoint); // try find in cache
if (isset($out_redis["fail_count"]) && $out_redis["fail_count"] > 2){
// we need stop here
log_message('critical', "Danger ***** ***** WrenchAuth::userLogin FAIL = ".$out_redis["fail_count"] );
}else{
$outF["fail_count"] = isset( $out_redis["fail_count"] ) ? $out_redis["fail_count"]+1:1;
}