信呼v2.5.1版本

This commit is contained in:
雨中磐石
2022-11-17 16:20:57 +08:00
parent 44100a4ab9
commit f4d68700c7
65 changed files with 1642 additions and 245 deletions

View File

@@ -463,7 +463,7 @@ class adminClassModel extends Model
$where2 = $this->gjoin($rangeno, '', 'where');
$where2 = 'and not('.$where2.')';
}
if($lx==0)$where.=' and `isvcard`=1'; //通讯录显示
//--start--
if(ISMORECOM && $uid>1){
$comid = $this->getcompanyid($uid);
@@ -477,9 +477,12 @@ class adminClassModel extends Model
}else{
$where = 'and ((1 '.$where.') or (`id`='.$uid.'))';
}
$rows = $this->getall("`status`=1 $where $where1 $where2",$fields,'`sort`,`name`');
if($lx==0)$where2.=' and `isvcard`=1'; //通讯录显示
$sql = "select $fields from `[Q]admin` where `status`=1 $where $where1 $where2 order by `sort`,`name`";
$rows = $this->db->getall($sql);
}else{
$rows = $this->getall("`id`='$uid'",$fields,'`sort`,`name`');
$sql = "select $fields from `[Q]admin` where `id`='$uid'";
$rows = $this->db->getall($sql);
}