webmain/reim/record/recordAction.php

(开头部分) 5KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<?php
class recordClassAction extends Action
{
	public function storebeforeshow($table)
	{
		$dt1	= $this->post('dt1');
		$dt2	= $this->post('dt2');
		$key	= $this->post('key');
		$atype 	= $this->post('atype');
		$receid = $this->post('receid');
		$whe 	= $this->rock->dbinstr('`receuid`', $this->adminid);
		$where = 'and '.$whe.'';
		
		if($atype=='all'){
			$where = '';
		}
		
		if(!isempt($dt1))$where.=" and `optdt`>='$dt1 00:00:00'";
		if(!isempt($dt2))$where.=" and `optdt`<='$dt2 23:59:59'";
		if(!isempt($receid)){
			$where.=" and ((`sendid` in($receid)) or (`type`='user' and `receid` in($receid)))";
		}
		if(!isempt($key)){
			$key = $this->rock->jm->base64encode($key);
			$where.=" and `cont` like '%$key%'";
		}
		
		return $where;
	}
	
	//数据显示后处理
	public function storeaftershow($table,$rows)
	{
		$suids 	 = '0';
		$guids 	 = '0';
		$fuids 	 = '0';
		$typearr = array('user'=>'单人','group'=>'群会话');
		foreach($rows as $k=>$rs){
			$suids.=','.$rs['sendid'].'';
			
			$rows[$k]['typetxt']= arrvalue($typearr, $rs['type']);
			if($rs['type']=='user'){
				$suids.=','.$rs['receid'].'';
			}else{
				$guids.=','.$rs['receid'].'';
			}
			if($rs['fileid']!='0')$fuids.=','.$rs['fileid'].'';
		}
		$warr	= $farr = $garr = array();
		
		if($suids!='0')$farr	= $this->db->getarr('[Q]admin', "`id` in($suids)",'`face`,`name`');
		if($guids!='0')$garr	= $this->db->getarr('[Q]im_group', "`id` in($guids)",'`face`,`name`');
		
		if($fuids!='0')$warr	= $this->db->getarr('[Q]file', "`id` in($fuids)",'filename,filesizecn,fileext,filepath,thumbpath,filenum'); //相关文件
		$fobj 	= m('file');
		$ztfo   = m('im_messzt');
		foreach($rows as $k=>$rs){
			$sendid = $rs['sendid'];
			$receid = $rs['receid'];
			$type 	= $rs['type'];
后面还有 172 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。