Skip to content

Commit

Permalink
clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangrunyu committed Jan 12, 2022
1 parent 80d6389 commit debd832
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions roadrunner/cron-worker.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,39 +26,9 @@
/* Instance the app. */
$app = router::createApp('pms', dirname(__DIR__), 'router');

// $_GET[$app->config->moduleVar] = 'cron';
// $_GET[$app->config->methodVar] = 'ajaxExec';
// $_SERVER['REQUEST_METHOD'] = 'GET';
// $_SERVER['REQUEST_URI'] = '/';
// $_GET['once'] = true;

// $app->moduleName = 'cron';
// $app->methodName = 'ajaxExec';

/* Run the app. */
$common = $app->loadCommon();

// var_dump(1);
/* Check entry. */
// $common->checkEntry();
// var_dump(2);
// $common->loadConfigFromDB();
// var_dump(3);

/* Set default params. */
// if(!$app->version) $config->requestType = 'GET';
// $config->default->view = 'json';

// $app->parseRequest();

// /* Old version need check priv here, new version check priv in entry. */
// if(!$app->version) $common->checkPriv();

// $app->moduleName = 'cron';
// $app->methodName = 'ajaxExec';

// $app->parseRequest();
// $common->checkPriv();
$app->moduleName = 'cron';
$app->methodName = 'ajaxExec';
$app->setControlFile();
Expand Down

0 comments on commit debd832

Please sign in to comment.