|
@@ -57,7 +57,7 @@ class ViolationStore extends Api
|
|
|
$result = $ViolationStoreModel->query()
|
|
$result = $ViolationStoreModel->query()
|
|
|
->where($map)
|
|
->where($map)
|
|
|
->orderByDesc('id')
|
|
->orderByDesc('id')
|
|
|
- ->paginate($limit);
|
|
|
|
|
|
|
+ ->paginate($limit)->toarray();
|
|
|
// 分配数据
|
|
// 分配数据
|
|
|
if (!$result) return json_send(['code' => 'error', 'msg' => '暂无数据']);
|
|
if (!$result) return json_send(['code' => 'error', 'msg' => '暂无数据']);
|
|
|
if (isset($result['data']) && count($result['data']) > 0) {
|
|
if (isset($result['data']) && count($result['data']) > 0) {
|