xiaogang 4 年之前
父节点
当前提交
7b8e223383
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/Http/Controllers/Api/DynamicController.php

+ 1 - 1
app/Http/Controllers/Api/DynamicController.php

xqd
@@ -185,7 +185,7 @@ class DynamicController extends Controller
         try {
             $user = auth('api')->user();
             $UserReportParam = new UserReportParam();
-            $UserReportParam->type = 2;
+            $UserReportParam->type = $request->post('type');  //1用户 2动态
             $UserReportParam->user_id = $user->id;
             $UserReportParam->content = $request->post('content');
             $UserReportParam->report_id = $request->post('id');