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