cron call
This commit is contained in:
@@ -92,7 +92,7 @@ define('EVENT_PRIORITY_NORMAL', 100);
|
|||||||
* @deprecated Use \CodeIgniter\Events\Events::PRIORITY_HIGH instead.
|
* @deprecated Use \CodeIgniter\Events\Events::PRIORITY_HIGH instead.
|
||||||
*/
|
*/
|
||||||
define('EVENT_PRIORITY_HIGH', 10);
|
define('EVENT_PRIORITY_HIGH', 10);
|
||||||
|
define('WRB_JOB_CRONJOB',770);
|
||||||
|
|
||||||
define('LOGIN_MODE_GENERAL', 1100);
|
define('LOGIN_MODE_GENERAL', 1100);
|
||||||
define('LOGIN_MODE_FAMILY', 1105);
|
define('LOGIN_MODE_FAMILY', 1105);
|
||||||
|
|||||||
@@ -5,9 +5,14 @@ namespace App\Controllers;
|
|||||||
class WrenchCrons extends BaseController
|
class WrenchCrons extends BaseController
|
||||||
{
|
{
|
||||||
public function apigate(){
|
public function apigate(){
|
||||||
|
$in["action"] =WRB_JOB_CRONJOB;
|
||||||
|
$wrenchboard = new \App\Models\BackendModel();
|
||||||
|
$ret = $wrenchboard->wrenchboard_api($in, $out);
|
||||||
|
$out['internal_return'] = $ret;
|
||||||
|
|
||||||
log_message('critical', "WrenchCrons ===> 0001");
|
log_message('critical', "WrenchCrons ===> 0001");
|
||||||
$response = []; //json_decode($complete, true);
|
//$response = []; //json_decode($complete, true);
|
||||||
return $this->response->setJson($response);
|
return $this->response->setJson($out);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user