Toggle navigation
Toggle navigation
This project
Loading...
Sign in
web
/
yoho-live
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
xiaofeng.yao@yoho.cn
8 years ago
Commit
71acf382b3fc50d92d6ef0b6dbbfe849fb963c55
1 parent
d284ef10
修改统计报错
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
backend/controllers/SystemController.php
backend/controllers/SystemController.php
View file @
71acf38
...
...
@@ -146,6 +146,8 @@ class SystemController extends BaseController
$count
=
clone
$model
;
$pagination
=
new
Pagination
([
'totalCount'
=>
$count
->
count
()]);
$list
=
$model
->
offset
(
$pagination
->
offset
)
->
limit
(
$pagination
->
limit
)
->
orderBy
([
'create_time'
=>
SORT_ASC
])
->
all
();
}
else
{
$pagination
=
new
Pagination
([
'totalCount'
=>
0
]);
}
return
$this
->
render
(
'statics'
,[
'list'
=>
$list
,
...
...
Please
register
or
login
to post a comment