信呼v2.5.0版本

This commit is contained in:
雨中磐石
2022-09-29 15:34:08 +08:00
parent e6d2c91521
commit 44100a4ab9
37 changed files with 685 additions and 91 deletions

View File

@@ -88,15 +88,18 @@ class flowbillClassModel extends Model
//抄送
if($lx=='flow_chaos'){
$where ='1=2';
$crows = $this->db->getall("select * from `[Q]flow_chao` where ".$this->rock->dbinstr('csnameid', $uid)."");
$where1= $this->rock->dbinstr('csnameid', $uid);
if($modeid>0)$where1.=' and `modeid`='.$modeid.'';
$crows = $this->db->getall("select * from `[Q]flow_chao` where $where1");
if($crows){
$modeids = '';
$mids = '';
$modeidsa= array();
foreach($crows as $k1=>$rs1){
$modeids.=','.$rs1['modeid'].'';
$mids.=','.$rs1['mid'].'';
$modeidsa[$rs1['modeid']][] = $rs1['mid'];
}
$where = "`isturn`=1 and `modeid` in(".substr($modeids,1).") and `mid` in(".substr($mids,1).")";
foreach($modeidsa as $mkid=>$mids)$wherea[]='(`modeid` = '.$mkid.' and `mid` in('.join(',', $mids).'))';
$where = '`isturn`=1 and ( '.join(' or ', $wherea).' )';
}
}