Ver código fonte

添加只修改金额的接口

chenxiqiang 6 anos atrás
pai
commit
e7dc7f321c

+ 2
- 2
manage-server/app/Http/Controllers/CommonController.php Ver arquivo

@@ -154,10 +154,10 @@ class CommonController extends Controller
154 154
     {
155 155
         $order_type = $request->route("order_type");
156 156
         if ($order_type) {
157
-            $record = Comment::where("order_type", $order_type)->first();
157
+            $records = Comment::where("order_type", $order_type)->get();
158 158
             return Response()->json([
159 159
                 "status" => 0,
160
-                "data" => $record
160
+                "data" => $records
161 161
             ]);
162 162
         }
163 163
     }

Carregando…
Cancelar
Salvar