首页面板
This commit is contained in:
@@ -44,6 +44,6 @@ abstract class Base extends Controller
|
||||
*/
|
||||
protected function start()
|
||||
{
|
||||
return (int)$this->limit * (int)$this->page;
|
||||
return (int)$this->limit * ((int)$this->page - 1) + 1;
|
||||
}
|
||||
}
|
||||
|
@@ -30,8 +30,14 @@ class Index extends Base
|
||||
return $this->fetch();
|
||||
}
|
||||
|
||||
/**
|
||||
* main
|
||||
*
|
||||
* @time at 2018年11月16日
|
||||
* @return mixed|string
|
||||
*/
|
||||
public function main()
|
||||
{
|
||||
return "this is main";
|
||||
return $this->fetch();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user