Browse Source

优化设备列表2

master
wanghongjun 2 years ago
parent
commit
bd3a3b1bb4
  1. 3
      application/index/controller/Device.php

3
application/index/controller/Device.php

@ -53,7 +53,8 @@ class Device extends Base
$num = Db::table("bs_product_device")->where($where)->count(); $num = Db::table("bs_product_device")->where($where)->count();
foreach ($result as &$item) { 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"] = ""; $list["msg"] = "";

Loading…
Cancel
Save