Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
10020857
Commit
10020857
authored
Apr 09, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
1cc6c329
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
7 deletions
+6
-7
SquareService.php
application/api_broker/service/SquareService.php
+5
-5
BComment.php
application/model/BComment.php
+1
-2
No files found.
application/api_broker/service/SquareService.php
View file @
10020857
...
...
@@ -103,11 +103,11 @@ class SquareService
$pageNo
=
empty
(
$params
[
'page_no'
])
?
1
:
$params
[
'page_no'
];
$pageSize
=
empty
(
$params
[
'page_size'
])
?
15
:
$params
[
'page_size'
];
$field
=
'Comment.id,'
;
//
$field
.=
'Comment.comment,'
;
//
$field
.=
'Comment.agent_id,'
;
//
$field
.=
'Comment.sort,'
;
//
$field
.=
'Comment.create_time'
;
//
$field
=
'Comment.id,'
;
$field
.=
'Comment.comment,'
;
$field
.=
'Comment.agent_id,'
;
$field
.=
'Comment.sort,'
;
$field
.=
'Comment.create_time'
;
$get_params
[
'Comment.square_id'
]
=
$params
[
'square_id'
];
...
...
application/model/BComment.php
View file @
10020857
...
...
@@ -21,7 +21,7 @@ class BComment extends Model
public
function
getSquareCommentList
(
$pageNo
,
$pageSize
,
$field
,
$params
)
{
$order
=
"Comment.create_time desc"
;
$order
=
"Comment.
sort desc,Comment.
create_time desc"
;
$result
=
Db
::
table
(
$this
->
table
)
->
field
(
$field
)
->
alias
(
'Comment'
)
...
...
@@ -36,7 +36,6 @@ class BComment extends Model
public
function
getSquareCommentListTotal
(
$field
,
$params
)
{
$order
=
"Comment.create_time desc"
;
$result
=
Db
::
table
(
$this
->
table
)
->
field
(
$field
)
->
alias
(
'Comment'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment