From 50dbc200e5b84c991185aaf644e822004c68deac Mon Sep 17 00:00:00 2001 From: zhanglingsheng Date: Fri, 13 Dec 2019 10:49:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=B6=E9=97=B4=E8=BD=AC=E6=8D=A2=E5=87=BD?= =?UTF-8?q?=E6=95=B0=E5=85=A8=E9=83=A8=E7=B2=BE=E7=A1=AE=E5=88=B0=E7=A7=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Common/Common/extend.php | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/Application/Common/Common/extend.php b/Application/Common/Common/extend.php index 7fe9e4803..36e236668 100644 --- a/Application/Common/Common/extend.php +++ b/Application/Common/Common/extend.php @@ -1691,17 +1691,18 @@ function array_order($arr){ */ function set_show_time($time = null,$type='time',$tab_type=''){ $date = ""; - switch ($type) { - case 'date': - $date = date('Y-m-d ',$time); - break; - case 'time': - $date = date('Y-m-d H:i',$time); - break; - default: - $date = date('Y-m-d H:i:s',$time); - break; - } + // switch ($type) { + // case 'date': + // $date = date('Y-m-d ',$time); + // break; + // case 'time': + // $date = date('Y-m-d H:i',$time); + // break; + // default: + // $date = date('Y-m-d H:i:s',$time); + // break; + // } + $date = date('Y-m-d H:i:s',$time); if(empty($time)){//若为空 根据不同情况返回 if($tab_type==''){ return "暂无登录";