This commit is contained in:
尘缘
2016-05-09 18:06:52 +08:00
2 changed files with 3 additions and 2 deletions

View File

@@ -60,6 +60,7 @@ abstract class Paginator
$this->hasMore = count($this->items) > ($this->listRows);
$this->items = $this->items->slice(0, $this->listRows);
} else {
$this->total = $total;
$this->lastPage = (int)ceil($total / $listRows);
$this->currentPage = $this->setCurrentPage($currentPage);
$this->hasMore = $this->currentPage < $this->lastPage;

View File

@@ -24,8 +24,8 @@ class Build extends Command
protected function configure()
{
$this->setName('build')
->setDefinition([new Option('config', null, Option::VALUE_OPTIONAL, "build.php path", APP_PATH . 'build.php')])
->setDefinition([new Option('module', null, Option::VALUE_OPTIONAL, "module name", 'index')])
->setDefinition([new Option('config', null, Option::VALUE_OPTIONAL, "build.php path")])
->setDefinition([new Option('module', null, Option::VALUE_OPTIONAL, "module name")])
->setDescription('Build Application Dirs');
}