promo site
This commit is contained in:
@@ -69,6 +69,7 @@ $routes->get('/en/flow/api/v1/offersmissed', 'AirFlow::flowOfferMissed');
|
||||
$routes->get('/en/flow/api/v1/holidaybroadcast', 'AirFlow::flowHolidayBroadCast');
|
||||
$routes->get('/en/flow/api/v1/refreshresoucres', 'AirFlow::flowRefreshResources');
|
||||
$routes->get('/en/flow/api/v1/stripe-card', 'AirFlow::flowStripeCard');
|
||||
$routes->get('/en/flow/api/v1/promoprocess', 'AirFlow::flowPromoProcess');
|
||||
|
||||
//$routes->group('/en/wrench/api/v1/', static function ($routes) {
|
||||
// $routes->get('/stripe-card', 'AirFlow::flowStripeCard');
|
||||
|
||||
@@ -19,6 +19,8 @@ define('WRB_CRONJOB_PROCESS_VUSA', 784);
|
||||
|
||||
define('WRB_CRONJOB_AUTO_OFFEREXPIRE', 785);
|
||||
define('WRB_CRONJOB_HOLIDAY_BROADCAST', 786);
|
||||
define('WRB_CRONJOB_PROCESS_PROMO', 788);
|
||||
|
||||
|
||||
define('WRB_CRONJOB_PENDINGSM', 790) ;
|
||||
|
||||
@@ -265,6 +267,20 @@ class AirFlow extends BaseController
|
||||
return []; //json_encode( $final_out );
|
||||
}
|
||||
|
||||
public function flowPromoProcess(){
|
||||
//define('WRB_CRONJOB_PROCESS_PROMO', 779) ;
|
||||
$raw_json = file_get_contents('php://input');
|
||||
$in = json_decode($raw_json, true);
|
||||
$out =[];
|
||||
log_message('critical', "AirFlow::flowPromoProcess ********* ALL ".serialize($in) );
|
||||
$in["loc"] = $_SERVER["REMOTE_ADDR"]; //
|
||||
$in["action"] =WRB_JOB_CRONJOB;
|
||||
$in['call_action'] = WRB_CRONJOB_PROCESS_PROMO;
|
||||
$in['one_limit'] = 10; //remove this
|
||||
$in['limit'] = 10;
|
||||
$ret['WRB_CRONJOB_PROCESS_PROMO'] = (new \App\Models\BackendModel())->wrenchboard_api($in, $out);
|
||||
return []; //json_encode( $final_out );
|
||||
}
|
||||
public function flowSendNotifications(){
|
||||
|
||||
$raw_json = file_get_contents('php://input');
|
||||
|
||||
@@ -10,6 +10,7 @@ define('WRB_CRONJOB_OFFER_REFUND_ALERT',775);
|
||||
define('WRB_CRONJOB_PENDOFFER_ALERT',776);
|
||||
define('WRB_CRONJOB_NOTIFICATIONS', 777) ;
|
||||
define('WRB_CRONJOB_GROUPJOBS', 778) ;
|
||||
define('WRB_CRONJOB_PROCESS_PROMO', 788) ;
|
||||
|
||||
define('WRB_CRONJOB_PENDINGSM', 790) ;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user