|
@@ -1,5 +1,6 @@
|
|
|
<?php
|
|
|
namespace app\api\controller;
|
|
|
+use app\common\model\ArticleComment;
|
|
|
use app\common\model\ArticleIntro;
|
|
|
use app\common\model\DatumIntro;
|
|
|
use app\common\model\ReportCase;
|
|
@@ -48,7 +49,7 @@ class Report extends Base
|
|
|
* @url /api/Report/userReport
|
|
|
* @method POST
|
|
|
* @header name:Authorization require:1 desc:Token
|
|
|
- * @param name:type type:int default:1 desc:举报类型(1视频2视频评论3会员,4资料,5图文6问答问题)
|
|
|
+ * @param name:type type:int default:1 desc:举报类型(1视频2视频评论3会员,4资料,5图文6问答问题,7新闻8图文评论9新闻评论)
|
|
|
* @param name:report_id type:int default:-- desc:举报内容的id
|
|
|
* @param name:case_ids type:string default:-- desc:举报类目id串(逗号隔开)
|
|
|
* @param name:content type:string default:-- desc:举报内容
|
|
@@ -88,6 +89,10 @@ class Report extends Base
|
|
|
$check_id = UserForum::where('id',$report_id)->value('id');
|
|
|
if(!$check_id) $this->error('问答问题不存在');
|
|
|
break;
|
|
|
+ case 7:
|
|
|
+ $check_id = ArticleComment::where('id',$report_id)->value('id');
|
|
|
+ if(!$check_id) $this->error('问答问题不存在');
|
|
|
+ break;
|
|
|
}
|
|
|
UserReport::report($this->user_id,$type,$report_id,$case_ids,$content);
|
|
|
$this->success('举报成功');
|