Beispiel #1
0
 /**
  * shell路由入口
  */
 public function shellRouter()
 {
     global $argv;
     if (isset($argv[1]) && substr($argv[1], 0, 1) == "-") {
         array_splice($argv, 1, 0, $this->routerInfo['base_shell']);
     }
     $router = isset($argv[1]) ? explode('/', $argv[1]) : [$this->routerInfo['base_shell']];
     $module = $router[0];
     $method = isset($router[1]) ? $router[1] : 'index';
     TXRequest::create($module, $method);
 }