Offers reminders

This commit is contained in:
CHIEFSOFT\ameye
2023-12-06 19:20:59 -05:00
parent 5b899dbd30
commit 22f1e74bde
2 changed files with 23 additions and 4 deletions
+2
View File
@@ -227,6 +227,8 @@ $routes->post('/en/wrench/api/v1/cron', 'WrenchCrons::apigate');
$routes->get('/en/wrench/api/v1/cron', 'WrenchCrons::apigate');
$routes->get('/en/wrench/api/v1/cron_jobalerts', 'WrenchCrons::jobalerts');
$routes->get('/en/wrench/api/v1/cron_notifications', 'WrenchCrons::notifications');
$routes->get('/en/wrench/api/v1/offersreminders', 'WrenchCrons::offersreminders');
$routes->get('/en/wrench/api/v1/bko', 'Bko::apigate');
$routes->post('/en/wrench/api/v1/bko', 'Bko::apigate');
+21 -4
View File
@@ -50,10 +50,10 @@ class WrenchCrons extends BaseController
$in['one_limit'] = 3;
$ret['WRB_CRONJOB_JOBDUE_REMINDER'] = $wrenchboard->wrenchboard_api($in, $out);
$in['call_action'] = WRB_CRONJOB_PENDOFFER_ALERT;
$in['one_limit'] = 3;
$ret['WRB_CRONJOB_PENDOFFER_ALERT'] = $wrenchboard->wrenchboard_api($in, $out);
//
// $in['call_action'] = WRB_CRONJOB_PENDOFFER_ALERT;
// $in['one_limit'] = 3;
// $ret['WRB_CRONJOB_PENDOFFER_ALERT'] = $wrenchboard->wrenchboard_api($in, $out);
$in['call_action'] = WRB_CRONJOB_JOBDUE_PAYMENTS;
$in['one_limit'] = 3;
@@ -75,4 +75,21 @@ class WrenchCrons extends BaseController
//$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'] = 3;
$ret['WRB_CRONJOB_PENDOFFER_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);
}
}