diff --git a/www-api/app/Config/Routes.php b/www-api/app/Config/Routes.php index 6ab5ddb5..bd5610d1 100644 --- a/www-api/app/Config/Routes.php +++ b/www-api/app/Config/Routes.php @@ -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'); diff --git a/www-api/app/Controllers/WrenchCrons.php b/www-api/app/Controllers/WrenchCrons.php index 6524fb6a..778079ba 100644 --- a/www-api/app/Controllers/WrenchCrons.php +++ b/www-api/app/Controllers/WrenchCrons.php @@ -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); + } } \ No newline at end of file