webmain/model/flow/emailmModel.php
(开头部分) 6KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
class flow_emailmClassModel extends flowModel
{
private $readunarr = array();//未读人员
//判断是否有读取权限
protected function flowisreadqx()
{
$to = m('emails')->rows('`mid`='.$this->id.' and `uid`='.$this->adminid.'');
return $to>0;
}
//删除时
protected function flowdeletebill($sm)
{
m('emails')->delete('`mid`='.$this->id.'');
}
protected function flowoptmenu($ors, $crs)
{
//撤回未读的
if($ors['num']=='chemail'){
$where = '`mid`='.$this->id.' and `type`<>2 and `zt`=0';
$drows = m('emails')->getall($where);
m('emails')->delete($where);
$uids = '0';
foreach($drows as $k1=>$rs1)$uids.=','.$rs1['uid'].'';
m('todo')->deltodo($this->modenum, $this->id, $uids);
}
}
protected function flowgetoptmenu($opt)
{
if($opt=='chemail'){
$to = $this->flogmodel->rows("".$this->mwhere." and `name`='撤回'");
if($to>0)return false;
}
}
//立即发送提醒
protected function flowsubmit($na, $sm)
{
if($this->rs['isturn']==1 && $this->rs['type']==0){
$h = c('html');
$cont = $h->htmlremove($this->rs['content']);
$cont = $h->substrstr($cont,0, 50);
$receid = $this->rs['receid'];
if(!isempt($this->rs['ccid']))$receid.=','.$this->rs['ccid'];
$this->push($receid, '邮件', $cont.'...', $this->rs['title']);
}
}
//重写方法将邮件标识已读邮件了
protected function flowdatalog($arr)
{
$where = '`mid`='.$this->id.' and `uid`='.$this->adminid.'';
$dbs = m('emails');
$dbs->update('`zt`=1', $where);
//判断我是否可以回复
后面还有 186 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
