Commit 34df3da1 authored by zhuwei's avatar zhuwei

bug

parent bd5220f8
......@@ -292,19 +292,20 @@ class SquareService
return $res;
}
/**
* 评论置顶
* @param $params
* @return $this|bool
*/
public function editCommenSort($params)
{
$where_params['id'] = $params['id'];
$update_params = [];
//城市
if (!empty($params['sort'])) {
$update_params['sort'] = $params['sort'];
}
if(!$update_params){
if (!isset($params['sort'])) {
return false;
}
$update_params['sort'] = $params['sort'];
$res = $this->m_coment->updateStatus($where_params, $update_params);
return $res;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment