Offers pendning
This commit is contained in:
@@ -30,7 +30,8 @@ class AirFlow extends BaseController
|
||||
$in = json_decode($raw_json, true);
|
||||
$out =[];
|
||||
log_message('critical', "AirFlow::flowOfferPending ********* ALL ".serialize($in) );
|
||||
return []; //json_encode( $final_out );
|
||||
return $this-> offersreminders();
|
||||
// return []; //json_encode( $final_out );
|
||||
}
|
||||
|
||||
public function flowDueReminder(){
|
||||
@@ -38,9 +39,10 @@ class AirFlow extends BaseController
|
||||
$raw_json = file_get_contents('php://input');
|
||||
$in = json_decode($raw_json, true);
|
||||
$out =[];
|
||||
return $this->jobLevelAlerts();
|
||||
log_message('critical', "AirFlow::flowDueReminder ********* ALL ".serialize($in) );
|
||||
return []; //json_encode( $final_out );
|
||||
return $this->jobLevelAlerts();
|
||||
|
||||
// return []; //json_encode( $final_out );
|
||||
}
|
||||
|
||||
public function flowApproveReminder(){
|
||||
@@ -110,6 +112,37 @@ class AirFlow extends BaseController
|
||||
$in['one_limit'] = 1;
|
||||
$ret['WRB_CRONJOB_OFFER_REFUND_ALERT'] = $wrenchboard->wrenchboard_api($in, $out);
|
||||
|
||||
// $out['internal_return'] = $ret;
|
||||
$out = $ret;
|
||||
|
||||
log_message('critical', "WrenchCrons ===> 0001");
|
||||
//$response = []; //json_decode($complete, true);
|
||||
return $this->response->setJson($out);
|
||||
}
|
||||
|
||||
public function offersreminders(){
|
||||
log_message('critical', "WrenchCrons ===> offersreminders ******** 0001");
|
||||
$in["action"] =WRB_JOB_CRONJOB;
|
||||
$wrenchboard = new \App\Models\BackendModel();
|
||||
|
||||
$in['call_action'] = WRB_CRONJOB_PENDOFFER_ALERT;
|
||||
$in['one_limit'] = 10;
|
||||
$in['mode'] = 100;
|
||||
$ret['WRB_CRONJOB_PENDOFFER_ALERT_100'] = $wrenchboard->wrenchboard_api($in, $out);
|
||||
|
||||
|
||||
$in['call_action'] = WRB_CRONJOB_PENDOFFER_ALERT;
|
||||
$in['one_limit'] = 10;
|
||||
$in['mode'] = 200; // 12 hours before expritation
|
||||
$ret['WRB_CRONJOB_PENDOFFER_ALERT_200'] = $wrenchboard->wrenchboard_api($in, $out);
|
||||
|
||||
|
||||
$in['call_action'] = WRB_CRONJOB_PENDOFFER_ALERT;
|
||||
$in['one_limit'] = 10;
|
||||
$in['mode'] = 300; // 6h hours before expritation
|
||||
$ret['WRB_CRONJOB_PENDOFFER_ALERT_300'] = $wrenchboard->wrenchboard_api($in, $out);
|
||||
|
||||
|
||||
// $out['internal_return'] = $ret;
|
||||
$out = $ret;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user