Offers reminders
This commit is contained in:
@@ -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', 'WrenchCrons::apigate');
|
||||||
$routes->get('/en/wrench/api/v1/cron_jobalerts', 'WrenchCrons::jobalerts');
|
$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/cron_notifications', 'WrenchCrons::notifications');
|
||||||
|
$routes->get('/en/wrench/api/v1/offersreminders', 'WrenchCrons::offersreminders');
|
||||||
|
|
||||||
|
|
||||||
$routes->get('/en/wrench/api/v1/bko', 'Bko::apigate');
|
$routes->get('/en/wrench/api/v1/bko', 'Bko::apigate');
|
||||||
$routes->post('/en/wrench/api/v1/bko', 'Bko::apigate');
|
$routes->post('/en/wrench/api/v1/bko', 'Bko::apigate');
|
||||||
|
|||||||
@@ -50,10 +50,10 @@ class WrenchCrons extends BaseController
|
|||||||
$in['one_limit'] = 3;
|
$in['one_limit'] = 3;
|
||||||
$ret['WRB_CRONJOB_JOBDUE_REMINDER'] = $wrenchboard->wrenchboard_api($in, $out);
|
$ret['WRB_CRONJOB_JOBDUE_REMINDER'] = $wrenchboard->wrenchboard_api($in, $out);
|
||||||
|
|
||||||
|
//
|
||||||
$in['call_action'] = WRB_CRONJOB_PENDOFFER_ALERT;
|
// $in['call_action'] = WRB_CRONJOB_PENDOFFER_ALERT;
|
||||||
$in['one_limit'] = 3;
|
// $in['one_limit'] = 3;
|
||||||
$ret['WRB_CRONJOB_PENDOFFER_ALERT'] = $wrenchboard->wrenchboard_api($in, $out);
|
// $ret['WRB_CRONJOB_PENDOFFER_ALERT'] = $wrenchboard->wrenchboard_api($in, $out);
|
||||||
|
|
||||||
$in['call_action'] = WRB_CRONJOB_JOBDUE_PAYMENTS;
|
$in['call_action'] = WRB_CRONJOB_JOBDUE_PAYMENTS;
|
||||||
$in['one_limit'] = 3;
|
$in['one_limit'] = 3;
|
||||||
@@ -75,4 +75,21 @@ class WrenchCrons extends BaseController
|
|||||||
//$response = []; //json_decode($complete, true);
|
//$response = []; //json_decode($complete, true);
|
||||||
return $this->response->setJson($out);
|
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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user