webmain/main/imgroup/imgroupAction.php
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
class imgroupClassAction extends Action
{
public function groupusershow($table)
{
$s = 'and 1=2';
$gid = $this->post('gid','0');
if($gid>0){
$s = " and id in(select `uid` from `[Q]im_groupuser` where `gid`='$gid')";
}
return array(
'where' => $s,
'fields'=> 'id,user,name,deptname,ranking'
);
}
public function groupafter($table, $rows)
{
foreach($rows as $k=>$rs){
$gid = $rs['id'];
$s = "`gid`='$gid'";
$rows[$k]['utotal'] = $this->db->rows('[Q]im_groupuser', $s);
}
return array('rows'=>$rows);
}
public function saveuserAjax()
{
$gid = (int)$this->post('gid','0');
$sid = c('check')->onlynumber($this->post('sid'));
m('reim')->adduserchat($gid, $sid, true);
echo 'success';
}
public function deluserAjax()
{
$gid = (int)$this->post('gid','0');
$sid = c('check')->onlynumber($this->post('sid','0'));
m('reim')->exitchat($gid, $sid);
echo 'success';
}
//保存组织结构
public function savegroupafter($table, $arr, $id)
{
m('imgroup')->updateguser($id, $arr['deptid']);
$rs = m($table)->getone($id);
if(isempt($rs['createname'])){
m($table)->update(array(
'createid' => $this->adminid,
'createname' => $this->adminname,
'createdt' => $this->now,
),$id);
}
}
public function reloadallAjax()
{
m('imgroup')->updategall();
后面还有 2 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
