Browse Source

执行时间

gorden 6 tháng trước cách đây
mục cha
commit
a9b580b18a
1 tập tin đã thay đổi với 5 bổ sung1 xóa
  1. 5 1
      app/controller/Curd.php

+ 5 - 1
app/controller/Curd.php

@@ -554,11 +554,15 @@ class Curd
      */
     protected function formatNormal($items, $total): Response
     {
+        dump("开始格式化:".time());
         $data = [
             'total' => $total,
             'rows' => $items
         ];
-        return json(['code' => 200, 'msg' => 'success', 'data' => $data]);
+        $return = json(['code' => 200, 'msg' => 'success', 'data' => $data]);
+
+        dump("格式化结束:".time());
+        return $return;
     }
 
     /**