mirror of
https://github.com/DzzXH/DzzOffice.git
synced 2026-04-07 22:06:18 +08:00
更新至v1.87.3,更新内容在Dzzoffice笔记中查看
This commit is contained in:
22
core/function/cache/cache_organization.php
vendored
22
core/function/cache/cache_organization.php
vendored
@@ -1,22 +0,0 @@
|
||||
<?php
|
||||
if(!defined('IN_DZZ')) {
|
||||
exit('Access Denied');
|
||||
}
|
||||
|
||||
function build_cache_organization() {
|
||||
global $_G;
|
||||
set_time_limit(0);
|
||||
@ini_set("memory_limit","512M");
|
||||
include_once libfile('function/organization');
|
||||
$data=array();
|
||||
/*$query=DB::query("select * from ".DB::table('organization')." where 1 limit 1000");
|
||||
while($value=DB::fetch($query)){
|
||||
//获取此机构下的用户;
|
||||
$value['uids']=C::t('organization_user')->fetch_uids_by_orgid($value['orgid']);//获取部门所有用户(不包括下级)
|
||||
$value['moderators']=C::t('organization_admin')->fetch_moderators_by_orgid($value['orgid']);
|
||||
$data[$value['orgid']]=$value;
|
||||
}*/
|
||||
savecache('organization', $data);
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user