浏览代码

添加只修改金额的接口

chenxiqiang 6 年前
父节点
当前提交
e7dc7f321c
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      manage-server/app/Http/Controllers/CommonController.php

+ 2
- 2
manage-server/app/Http/Controllers/CommonController.php 查看文件

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

Loading…
取消
保存