|
|
@@ -27,8 +27,8 @@ class Issue extends BaseController
|
|
|
]);
|
|
|
$date = request()->input('date', null);
|
|
|
if (!$date) $date = date("Y-m-d");
|
|
|
- $list = CaoHistory::where('date', $date)->get();
|
|
|
- if(count($list)>0)$list = $list[0];
|
|
|
+ $list = CaoHistory::where('date', $date)->get()->toArray();
|
|
|
+ if (count($list) > 0) $list = $list[0];
|
|
|
|
|
|
|
|
|
} catch (ValidationException $e) {
|