From 0ab55d3e1fb010598498a47b43d16147152ccf30 Mon Sep 17 00:00:00 2001 From: hellcat Date: Mon, 27 Jul 2026 16:39:35 +0800 Subject: [PATCH] no message --- app/Http/Controllers/Api/Nasa/V1/ArticleCacheController.php | 3 ++- resources/views/nasa/v1/_lists/list.blade.php | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/Api/Nasa/V1/ArticleCacheController.php b/app/Http/Controllers/Api/Nasa/V1/ArticleCacheController.php index f78ced45..74464352 100755 --- a/app/Http/Controllers/Api/Nasa/V1/ArticleCacheController.php +++ b/app/Http/Controllers/Api/Nasa/V1/ArticleCacheController.php @@ -31,7 +31,8 @@ final class ArticleCacheController extends ListController ]; protected array $aFieldTypes = [ - "content" => "json" + "content" => "json", + "created_at"=> "time" ]; protected array $aOrderBy = [ diff --git a/resources/views/nasa/v1/_lists/list.blade.php b/resources/views/nasa/v1/_lists/list.blade.php index 8e2eabce..7a88027a 100644 --- a/resources/views/nasa/v1/_lists/list.blade.php +++ b/resources/views/nasa/v1/_lists/list.blade.php @@ -54,6 +54,8 @@ $sShowValue = "".$v.""; $sShowValue .= ""; // $sShowValue .= ""; + } else if ($sValueType == 'time') { + $sShowValue = date("Y-m-d H:i:s", $v); } return $sShowValue;