promo site

This commit is contained in:
CHIEFSOFT\ameye
2024-11-19 11:36:00 -05:00
parent ade858cf8d
commit a0fc70065b
3 changed files with 18 additions and 0 deletions
+16
View File
@@ -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');