webmain/model/flow/newsModel.php

(开头部分) 3KB

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

<?php
class flow_newsClassModel extends flowModel
{
	private $readunarr = array();//未读人员
	public $logobj,$htmlobj;
	public function initModel()
	{
		$this->logobj = m('log');
		$this->htmlobj = c('html');
	}
	
	protected function flowchangedata(){
		$cont 	= c('html')->replace($this->rs['content']);
		$fm 	= $this->rs['fengmian'];
		if(!isempt($fm)){
			$cont='<div align="center"><img src="'.$this->rock->gethttppath($fm).'"></div>'.$cont.'';
		}
		$url	= $this->rs['url'];
		if(!isempt($url))$cont.='<div><a href="'.$url.'">查看原文&gt;&gt;</a></div>';
		$this->rs['content'] = $cont;
	}
	
	public function flowrsreplace($rs, $lx=0)
	{
		$content = $rs['content'];
		if($lx==2){
			unset($rs['content']);
			$rs['smallcont'] = $this->neircong($content);
		}
		return $rs;
	}
	//移动端列表
	public function flowrsreplace_we($row, $rs)
	{
		if(!isempt($rs['fengmian']))$row['picurl'] = $rs['fengmian'];	
		return $row;
	}
	public function flowwesearchdata($lx)
	{
		if($lx==1)return $this->option->getselectdata('newstype', true);
		return array(
			'typename' => '所有分类',
			'searchmsg' => '新闻标题/分类',
		);
	}
	
	protected function flowsubmit($na, $sm)
	{
		if($this->rs['status']==1)$this->tisongtodo();
	}
	
	//审核完成后发通知
	protected function flowcheckfinsh($zt)
	{
		if($zt==1)$this->tisongtodo();
	}
	
	public function getreceids($receid, $whe='')
	{
		$receid 	= $this->adminmodel->gjoin($receid,'ud','where');
后面还有 84 行代码,购买后查看完整代码

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

AI 解读 AI

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

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