角色相关(列表和下拉框)、用户查询、项目部分API
This commit is contained in:
@@ -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) : '';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user