wupengfei 2 years ago
parent
commit
5526ab14a9
2 changed files with 11 additions and 5 deletions
  1. 5 4
      .idea/workspace.xml
  2. 6 1
      application/api/controller/Report.php

+ 5 - 4
.idea/workspace.xml

@@ -3,7 +3,7 @@
   <component name="ChangeListManager">
     <list default="true" id="1a36929e-c054-4875-a943-593a74e55fa4" name="Default Changelist" comment="">
       <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/application/api/controller/OpenSearch.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/api/controller/OpenSearch.php" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/application/api/controller/Report.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/api/controller/Report.php" afterDir="false" />
     </list>
     <option name="SHOW_DIALOG" value="false" />
     <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -249,7 +249,8 @@
       <workItem from="1677718149453" duration="25714000" />
       <workItem from="1677805207495" duration="7323000" />
       <workItem from="1678063982310" duration="24531000" />
-      <workItem from="1678149106133" duration="22700000" />
+      <workItem from="1678149106133" duration="24129000" />
+      <workItem from="1678236784872" duration="1119000" />
     </task>
     <servers />
   </component>
@@ -403,10 +404,10 @@
       <screen x="0" y="0" width="2560" height="1400" />
     </state>
     <state width="498" height="446" key="SwitcherDM/0.0.2560.1400@0.0.2560.1400" timestamp="1677809229518" />
-    <state x="533" y="290" key="com.intellij.ide.util.TipDialog" timestamp="1678149107620">
+    <state x="533" y="290" key="com.intellij.ide.util.TipDialog" timestamp="1678236791603">
       <screen x="0" y="0" width="2560" height="1400" />
     </state>
-    <state x="533" y="290" key="com.intellij.ide.util.TipDialog/0.0.2560.1400@0.0.2560.1400" timestamp="1678149107620" />
+    <state x="533" y="290" key="com.intellij.ide.util.TipDialog/0.0.2560.1400@0.0.2560.1400" timestamp="1678236791603" />
     <state x="1166" y="605" key="com.intellij.openapi.vcs.update.UpdateOrStatusOptionsDialogupdate-v2" timestamp="1676615702242">
       <screen x="0" y="0" width="2560" height="1400" />
     </state>

+ 6 - 1
application/api/controller/Report.php

@@ -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('举报成功');