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
416c3996
Commit
416c3996
authored
Apr 03, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
开盘广场-评论置顶
parent
1fa3d745
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
41 additions
and
0 deletions
+41
-0
Square.php
application/api_broker/controller/Square.php
+16
-0
SquareService.php
application/api_broker/service/SquareService.php
+16
-0
BComment.php
application/model/BComment.php
+8
-0
route.php
application/route.php
+1
-0
No files found.
application/api_broker/controller/Square.php
View file @
416c3996
...
@@ -137,6 +137,21 @@ class Square extends Basic
...
@@ -137,6 +137,21 @@ class Square extends Basic
}
}
}
}
public
function
editCommenSort
()
{
$params
=
$this
->
params
;
if
(
!
isset
(
$params
[
'id'
])
or
!
isset
(
$params
[
'sort'
]))
{
return
$this
->
response
(
"101"
,
"参数不全"
);
}
$res
=
$this
->
s_square
->
editCommenSort
(
$params
);
if
(
$res
)
{
return
$this
->
response
(
"200"
,
"成功"
);
}
else
{
return
$this
->
response
(
"101"
,
"失败"
);
}
}
}
}
\ No newline at end of file
application/api_broker/service/SquareService.php
View file @
416c3996
...
@@ -237,6 +237,22 @@ class SquareService
...
@@ -237,6 +237,22 @@ class SquareService
return
[
'data'
=>
$res
];
return
[
'data'
=>
$res
];
}
}
public
function
editCommenSort
(
$params
)
{
$where_params
[
'id'
]
=
$params
[
'id'
];
//城市
if
(
!
empty
(
$params
[
'sort'
]))
{
$update_params
[
'sort'
]
=
$params
[
'sort'
];
}
if
(
!
$update_params
){
return
false
;
}
$res
=
$this
->
m_coment
->
updateStatus
(
$where_params
,
$update_params
);
return
$res
;
}
public
function
getSquareCommentExtList
(
$params
){
public
function
getSquareCommentExtList
(
$params
){
$pageNo
=
empty
(
$params
[
'page_no'
])
?
1
:
$params
[
'page_no'
];
$pageNo
=
empty
(
$params
[
'page_no'
])
?
1
:
$params
[
'page_no'
];
$pageSize
=
empty
(
$params
[
'page_size'
])
?
15
:
$params
[
'page_size'
];
$pageSize
=
empty
(
$params
[
'page_size'
])
?
15
:
$params
[
'page_size'
];
...
...
application/model/BComment.php
View file @
416c3996
...
@@ -63,4 +63,12 @@ class BComment extends Model
...
@@ -63,4 +63,12 @@ class BComment extends Model
return
$result
;
return
$result
;
}
}
public
function
updateStatus
(
$where_params
,
$update_params
)
{
$result
=
$this
->
where
(
$where_params
)
->
update
(
$update_params
);
// dump($this->getLastSql());exit;
// big_log($this->getLastSql());
return
$result
;
}
}
}
application/route.php
View file @
416c3996
...
@@ -862,6 +862,7 @@ Route::group('broker', [
...
@@ -862,6 +862,7 @@ Route::group('broker', [
'getSquareCommentList'
=>
[
'api_broker/Square/getSquareCommentList'
,
[
'method'
=>
'GET|POST'
]
],
'getSquareCommentList'
=>
[
'api_broker/Square/getSquareCommentList'
,
[
'method'
=>
'GET|POST'
]
],
'getCommenInfo'
=>
[
'api_broker/Square/getCommenInfo'
,
[
'method'
=>
'GET|POST'
]
],
'getCommenInfo'
=>
[
'api_broker/Square/getCommenInfo'
,
[
'method'
=>
'GET|POST'
]
],
'getSquareCommentExtList'
=>
[
'api_broker/Square/getSquareCommentExtList'
,
[
'method'
=>
'GET|POST'
]
],
'getSquareCommentExtList'
=>
[
'api_broker/Square/getSquareCommentExtList'
,
[
'method'
=>
'GET|POST'
]
],
'editCommenSort'
=>
[
'api_broker/Square/editCommenSort'
,
[
'method'
=>
'GET|POST'
]
],
]);
]);
...
...
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