客户删除

This commit is contained in:
2025-03-18 15:07:22 +08:00
parent 407a89209a
commit 54c8e5186e
6 changed files with 61 additions and 17 deletions
+12 -1
View File
@@ -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;
}
}