|
@@ -928,9 +928,9 @@ class Video extends Base
|
|
|
{
|
|
|
// 回复我的
|
|
|
$all_comment = VideoComment::where(['user_id'=>$this->user_id,'is_deleted'=>0])->column('id');
|
|
|
- $reply_num = VideoComment::where([['t.is_deleted','=',0],['t.lev','>=',2],['is_read'=>0],['t.pid','in',implode(',',$all_comment)]])->alias('t')->count();
|
|
|
+ $reply_num = VideoComment::where([['t.is_deleted','=',0],['t.lev','>=',2],['is_read','=',0],['t.pid','in',implode(',',$all_comment)]])->alias('t')->count();
|
|
|
// 评论我的
|
|
|
- $comment_num = VideoComment::where([['t.is_deleted','=',0],['i.user_id','=',$this->user_id],['is_read'=>0]])
|
|
|
+ $comment_num = VideoComment::where([['t.is_deleted','=',0],['i.user_id','=',$this->user_id],['is_read','=',0]])
|
|
|
->leftJoin('VideoUrl i','t.url_id = i.id')
|
|
|
->alias('t')->count();
|
|
|
$this->success('ok',compact(['reply_num','comment_num']));
|