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

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

@@ -128,7 +128,8 @@ class DynamicController extends Controller
         try {
         try {
             $list = $this->dynamicService->dynamic_list($where);
             $list = $this->dynamicService->dynamic_list($where);
         }catch (\Exception $exception){
         }catch (\Exception $exception){
-            return $this->response->errorForbidden($exception->getMessage());
+
+            return $this->response->errorForbidden($exception);
         }
         }
         return response()->json($list);
         return response()->json($list);
     }
     }

+ 0 - 1
app/Services/DynamicService.php

@@ -267,7 +267,6 @@ class DynamicService
             }
             }
             $dynamic['data'][$k]['is_zan'] = $is_zan;
             $dynamic['data'][$k]['is_zan'] = $is_zan;
         }
         }
-        var_dump($dynamic);die;
         return $dynamic;
         return $dynamic;
     }
     }