crons new
This commit is contained in:
@@ -19,27 +19,6 @@ class WrenchCrons extends BaseController
|
||||
$in['one_limit'] = 3;
|
||||
$ret['WRB_CRONJOB_SIGNUP_ALERT'] = $wrenchboard->wrenchboard_api($in, $out);
|
||||
|
||||
$in['call_action'] = WRB_CRONJOB_JOBDUE_REMINDER;
|
||||
$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_JOBDUE_PAYMENTS;
|
||||
$in['one_limit'] = 3;
|
||||
$ret['WRB_CRONJOB_JOBDUE_PAYMENTS'] = $wrenchboard->wrenchboard_api($in, $out);
|
||||
|
||||
|
||||
$in['call_action'] = WRB_CRONJOB_PASTDUE_ALERT;
|
||||
$in['one_limit'] = 3;
|
||||
$ret['WRB_CRONJOB_PASTDUE_ALERT'] = $wrenchboard->wrenchboard_api($in, $out);
|
||||
|
||||
$in['call_action'] = WRB_CRONJOB_OFFER_REFUND_ALERT;
|
||||
$in['one_limit'] = 1;
|
||||
$ret['WRB_CRONJOB_OFFER_REFUND_ALERT'] = $wrenchboard->wrenchboard_api($in, $out);
|
||||
|
||||
// $out['internal_return'] = $ret;
|
||||
$out = $ret;
|
||||
@@ -49,4 +28,51 @@ class WrenchCrons extends BaseController
|
||||
return $this->response->setJson($out);
|
||||
}
|
||||
|
||||
//$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');
|
||||
|
||||
public function cron_notifications()
|
||||
{
|
||||
$in["action"] = WRB_JOB_CRONJOB;
|
||||
$wrenchboard = new \App\Models\BackendModel();
|
||||
$out=[];
|
||||
|
||||
log_message('critical', "WrenchCrons ===> 0001");
|
||||
//$response = []; //json_decode($complete, true);
|
||||
return $this->response->setJson($out);
|
||||
}
|
||||
public function jobalerts(){
|
||||
$in["action"] =WRB_JOB_CRONJOB;
|
||||
$wrenchboard = new \App\Models\BackendModel();
|
||||
|
||||
$in['call_action'] = WRB_CRONJOB_JOBDUE_REMINDER;
|
||||
$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_JOBDUE_PAYMENTS;
|
||||
$in['one_limit'] = 3;
|
||||
$ret['WRB_CRONJOB_JOBDUE_PAYMENTS'] = $wrenchboard->wrenchboard_api($in, $out);
|
||||
|
||||
|
||||
$in['call_action'] = WRB_CRONJOB_PASTDUE_ALERT;
|
||||
$in['one_limit'] = 3;
|
||||
$ret['WRB_CRONJOB_PASTDUE_ALERT'] = $wrenchboard->wrenchboard_api($in, $out);
|
||||
|
||||
$in['call_action'] = WRB_CRONJOB_OFFER_REFUND_ALERT;
|
||||
$in['one_limit'] = 1;
|
||||
$ret['WRB_CRONJOB_OFFER_REFUND_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