From bd3a3b1bb4b2a8fda7b3d7a01e773ee5d718798b Mon Sep 17 00:00:00 2001 From: wanghongjun <1445693971@qq,com> Date: Thu, 30 Nov 2023 11:47:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=AE=BE=E5=A4=87=E5=88=97?= =?UTF-8?q?=E8=A1=A82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/index/controller/Device.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/application/index/controller/Device.php b/application/index/controller/Device.php index b84f0d0..f00da35 100644 --- a/application/index/controller/Device.php +++ b/application/index/controller/Device.php @@ -53,7 +53,8 @@ class Device extends Base $num = Db::table("bs_product_device")->where($where)->count(); foreach ($result as &$item) { - + if ($item['onlineAt']) $item['onlineAt'] = date("Y-m-d H:i:s",substr($item['onlineAt'],0,10)); + if ($item['offlineAt']) $item['offlineAt'] = date("Y-m-d H:i:s",substr($item['offlineAt'],0,10)); } $list["msg"] = "";