客户删除
This commit is contained in:
+12
-1
@@ -83,7 +83,7 @@ class Util
|
||||
}
|
||||
|
||||
/**
|
||||
* 成功日期
|
||||
* 日期格式转化
|
||||
*/
|
||||
public static function timeTotDate($time = 0, $format = 'Y-m-d H:i:s')
|
||||
{
|
||||
@@ -93,4 +93,15 @@ class Util
|
||||
return date($format, $time);
|
||||
}
|
||||
|
||||
/**
|
||||
* 格式化创建时间
|
||||
*/
|
||||
public static function formatDate($value,$key = ['created_at','updated_at'])
|
||||
{
|
||||
foreach ($key as $k){
|
||||
$value[$k]= self::timeTotDate($value[$k]);
|
||||
}
|
||||
return $value;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user