|
@@ -19,7 +19,7 @@ class Topicdongtai extends Api
|
|
|
public function addone(){
|
|
|
$content = input('content','');
|
|
|
$images = input('images','');
|
|
|
- $topic_id = input('topic_id',1);
|
|
|
+ $topic_id = input('topic_id',0);
|
|
|
if(!$content && !$images){
|
|
|
$this->error(__('Invalid parameters'));
|
|
|
}
|
|
@@ -203,7 +203,6 @@ class Topicdongtai extends Api
|
|
|
|
|
|
//评论
|
|
|
$info['answernumber'] = Db::name('topic_dongtai_answer')->where(['dt_id'=>$id,'level'=>1])->count();
|
|
|
- //$info['answer'] = $this->answer_list($id);
|
|
|
}
|
|
|
|
|
|
$this->success('success',$info);
|
|
@@ -356,7 +355,7 @@ class Topicdongtai extends Api
|
|
|
}
|
|
|
|
|
|
//举报枚举
|
|
|
- public function report_enum(){
|
|
|
+ /* public function report_enum(){
|
|
|
$arr = [
|
|
|
'侮辱谩骂',
|
|
|
'色情低俗',
|
|
@@ -380,7 +379,7 @@ class Topicdongtai extends Api
|
|
|
|
|
|
Db::name('topic_dongtai_report')->insertGetId($data);
|
|
|
$this->success('举报成功');
|
|
|
- }
|
|
|
+ }*/
|
|
|
|
|
|
//不感兴趣,屏蔽某条
|
|
|
public function screen(){
|
|
@@ -480,7 +479,7 @@ class Topicdongtai extends Api
|
|
|
|
|
|
}
|
|
|
|
|
|
- //某个圈子里的动态列表,最新,推荐
|
|
|
+ //某个圈子里的动态列表,最新,推荐,关注
|
|
|
public function topic_list(){
|
|
|
$where = [];
|
|
|
$topic_id = input('topic_id',0);
|
|
@@ -555,7 +554,7 @@ class Topicdongtai extends Api
|
|
|
////////////////////////////////////////////////////////////
|
|
|
|
|
|
//消息-互动消息-评论
|
|
|
- //谁评论了我
|
|
|
+ //谁评论了我的动态
|
|
|
public function msg_answer(){
|
|
|
$map = [
|
|
|
'dt.user_id' => $this->auth->id,
|
|
@@ -579,7 +578,7 @@ class Topicdongtai extends Api
|
|
|
|
|
|
|
|
|
//消息-互动消息-获赞
|
|
|
- //谁赞了我
|
|
|
+ //谁赞了我的动态
|
|
|
public function msg_good(){
|
|
|
$map = [
|
|
|
'dt.user_id' => $this->auth->id,
|