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
e2b21705
Commit
e2b21705
authored
May 08, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
注释
parent
bbc19bcd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
0 deletions
+40
-0
SquareService.php
application/api_broker/service/SquareService.php
+40
-0
No files found.
application/api_broker/service/SquareService.php
View file @
e2b21705
...
@@ -135,6 +135,11 @@ class SquareService
...
@@ -135,6 +135,11 @@ class SquareService
return
[
'data'
=>
$res
,
'total'
=>
$res_total
];
return
[
'data'
=>
$res
,
'total'
=>
$res_total
];
}
}
/**
* 评论列表
* @param $params
* @return array
*/
public
function
getSquareCommentList
(
$params
)
public
function
getSquareCommentList
(
$params
)
{
{
// big_log(json_encode($params));
// big_log(json_encode($params));
...
@@ -233,6 +238,11 @@ class SquareService
...
@@ -233,6 +238,11 @@ class SquareService
return
$res
;
return
$res
;
}
}
/**
* 删除
* @param $params
* @return $this
*/
public
function
delSquare
(
$params
)
public
function
delSquare
(
$params
)
{
{
$where_params
[
'id'
]
=
$params
[
'id'
];
$where_params
[
'id'
]
=
$params
[
'id'
];
...
@@ -252,6 +262,11 @@ class SquareService
...
@@ -252,6 +262,11 @@ class SquareService
return
$res
;
return
$res
;
}
}
/**
* 修改开盘广场
* @param $params
* @return $this|bool
*/
public
function
editSquare
(
$params
)
public
function
editSquare
(
$params
)
{
{
$where_params
[
'id'
]
=
$params
[
'id'
];
$where_params
[
'id'
]
=
$params
[
'id'
];
...
@@ -286,6 +301,15 @@ class SquareService
...
@@ -286,6 +301,15 @@ class SquareService
}
}
/**
* 新增评论
* @param $square_id
* @param $comment
* @param $agent_id
* @param $agent_b
* @param $agent_name
* @return bool
*/
public
function
addBComment
(
$square_id
,
$comment
,
$agent_id
,
$agent_b
,
$agent_name
)
public
function
addBComment
(
$square_id
,
$comment
,
$agent_id
,
$agent_b
,
$agent_name
)
{
{
$insert
[
"square_id"
]
=
$square_id
;
//文章id
$insert
[
"square_id"
]
=
$square_id
;
//文章id
...
@@ -305,6 +329,17 @@ class SquareService
...
@@ -305,6 +329,17 @@ class SquareService
}
}
}
}
/**
* 新增回复评论
* @param $comment_id
* @param $agent_id_a
* @param $agent_id_b
* @param $comment
* @param $level
* @param $agent_name
* @param $square_id
* @return bool
*/
public
function
addBCommentExt
(
$comment_id
,
$agent_id_a
,
$agent_id_b
,
$comment
,
$level
,
$agent_name
,
$square_id
)
public
function
addBCommentExt
(
$comment_id
,
$agent_id_a
,
$agent_id_b
,
$comment
,
$level
,
$agent_name
,
$square_id
)
{
{
$insert
[
"comment_id"
]
=
$comment_id
;
//comment_id
$insert
[
"comment_id"
]
=
$comment_id
;
//comment_id
...
@@ -377,6 +412,11 @@ class SquareService
...
@@ -377,6 +412,11 @@ class SquareService
return
$res
;
return
$res
;
}
}
/**
* 回复评论列表
* @param $params
* @return array
*/
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'
];
...
...
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