|
@@ -231,7 +231,9 @@ class Topicdongtai extends Api
|
|
|
}
|
|
|
|
|
|
//系统消息
|
|
|
+ if($dt_user_id != $this->auth->id){
|
|
|
$msg_id = \app\common\model\Message::addMessage($dt_user_id,'动态点赞','有人赞了你的动态','dongtai_good',$id);
|
|
|
+ }
|
|
|
|
|
|
Db::commit();
|
|
|
$this->success('点赞成功');
|
|
@@ -309,7 +311,9 @@ class Topicdongtai extends Api
|
|
|
$msg_content = '有人点评了你的动态评论';
|
|
|
$infotype_id = $answer_info['id'];
|
|
|
}
|
|
|
- $msg_id = \app\common\model\Message::addMessage($msg_user_id,$msg_title,$msg_content,'dongtai_answer',$infotype_id);
|
|
|
+ if($msg_user_id != $this->auth->id){
|
|
|
+ $msg_id = \app\common\model\Message::addMessage($msg_user_id,$msg_title,$msg_content,'dongtai_answer',$infotype_id);
|
|
|
+ }
|
|
|
|
|
|
Db::commit();
|
|
|
$this->success('评价成功');
|