|
@@ -122,18 +122,23 @@ class ReadRecordController extends BaseController
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- if(count($res) > 0){
|
|
|
- \Log::info('删除失败');
|
|
|
- \Log::info($res);
|
|
|
- usort($res, function ($a, $b) {
|
|
|
- if ($a['time'] >= $b['time']) return -1;
|
|
|
- return 1;
|
|
|
- });
|
|
|
- return response()->collection(new ReadRecordTransformer(), array_to_object($res));
|
|
|
- }
|
|
|
- \Log::info("成功");
|
|
|
- \Log::info($res);
|
|
|
- return response()->success($res);
|
|
|
+ usort($res, function ($a, $b) {
|
|
|
+ if ($a['time'] >= $b['time']) return -1;
|
|
|
+ return 1;
|
|
|
+ });
|
|
|
+ return response()->collection(new ReadRecordTransformer(), array_to_object($res));
|
|
|
+// if(count($res) > 0){
|
|
|
+// \Log::info('删除失败');
|
|
|
+// \Log::info($res);
|
|
|
+// usort($res, function ($a, $b) {
|
|
|
+// if ($a['time'] >= $b['time']) return -1;
|
|
|
+// return 1;
|
|
|
+// });
|
|
|
+// return response()->collection(new ReadRecordTransformer(), array_to_object($res));
|
|
|
+// }
|
|
|
+// \Log::info("成功");
|
|
|
+// \Log::info($res);
|
|
|
+// return response()->success($res);
|
|
|
}
|
|
|
|
|
|
|