产品
This commit is contained in:
@@ -59,6 +59,11 @@ class PostCommentService
|
||||
if (isset($p['user_id']) && !empty($p['user_id'])) {
|
||||
$config['where']['user_id'] = $p['user_id'];
|
||||
}
|
||||
if (isset($p['scene']) && $p['scene']=='self') {
|
||||
if(!empty($request->user) && !empty($request->user->uid)){
|
||||
$config['where']['user_id'] = $request->user->uid;
|
||||
}
|
||||
}
|
||||
// 只查询根评论
|
||||
if (isset($p['parent_id']) && $p['parent_id'] == 0) {
|
||||
$config['where']['parent_id'] = 0;
|
||||
|
||||
Reference in New Issue
Block a user