webmain/model/reimplat/deptModel.php
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
class reimplat_deptClassModel extends reimplatModel
{
public function initReimplat()
{
$this->settable('zreim_user');
}
//获取部门
public function getdeptlist()
{
$url = $this->geturl('opendept','deptlist');
$result = c('curl')->getcurl($url);
$barr = $this->recordchu($result);
if(!$barr['success'])return $barr;
return returnsuccess($barr['data']['deptlist']);
}
//获取所有用户
public function getuserlist()
{
$url = $this->geturl('opendept','useralllist');
$result = c('curl')->getcurl($url);
$barr = $this->recordchu($result);
if($barr['success']){
$userarr = $barr['data']['userlist'];
$ids = '0';
foreach($userarr as $k=>$rs){
$id1 = $this->userupdates($rs);
$ids.=','.$id1.'';
}
$this->delete('`id` not in('.$ids.')');
}
return returnsuccess();
}
public function getuinfo($user)
{
return $this->getone("`user`='$user'");
}
public function userupdates($rs)
{
$where = "`user`='".$rs['user']."'";
$uars = $this->getone($where);
if($uars){
$id1 = $uars['id'];
}else{
$id1 = 0;
$where='';
}
$uarr = array(
'user' => $rs['user'],
'name' => $rs['name'],
'position' => $rs['position'],
'mobile' => $rs['mobile'],
后面还有 87 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
