角色相关(列表和下拉框)、用户查询、项目部分API

This commit is contained in:
2025-05-05 16:44:23 +08:00
parent 7c8b090940
commit 2609d009ed
12 changed files with 252 additions and 10 deletions

View File

@@ -490,3 +490,15 @@ if (!function_exists('get_time')) {
return $isString === true ? date($format) : time();
}
}
/**
* 格式化
*
* @return array
*/
if (!function_exists('format_time')) {
function format_time($time, $format = 'Y-m-d H:i:s'): string
{
return !empty($time)? date($format, $time) : '';
}
}