webmain/model/agent/workModel.php

(开头部分) 1KB

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

<?php
//任务的应用
class agent_workClassModel extends agentModel
{
	
	public function gettotal()
	{
		$stotal	= $this->getwdtotal($this->adminid);
		$titles	= '';
		return array('stotal'=>$stotal,'titles'=> $titles);
	}
	
	private function getwdtotal($uid)
	{
		$to	= m('work')->getwwctotals($uid);
		return $to;
	}
	
	protected function agenttotals($uid){
		return array(
			'myrw' => $this->getwdtotal($uid)
		);
	}
	
	protected function agentrows($rows, $rowd, $uid){
		$rows = $this->agentrows_status($rows, $rowd);
		$projectarr = false;
		//读取我的项目
		if($this->loadci==1){
			$tos = m('flow_set')->rows("`num`='project' and `status`=1");
			if($tos>0){
				$where1 = $this->rock->dbinstr('`fuzeid`', $uid);
				$where2 = m('admin')->getjoinstr('`runuserid`', $uid, 1, 1);
				$xmrows = m('project')->getall("`status` <>5 and ($where1 or $where2)",'*');
				if($xmrows){
					$projectarr = array();
					foreach($xmrows as $k1=>$rs1){
						$projectarr[] = array(
							'id' => $rs1['id'],
							'name' => '['.$rs1['type'].']'.$rs1['title'].'('.$rs1['progress'].'%)',
						);
					}
				}
			}
		}
		return array(
			'rows' => $rows,
			'projectarr' => $projectarr
		);
	}
	
	protected function agentrows11($rows, $rowd, $uid)
	{
		$statea = $this->flow->statearr;
		foreach($rowd as $k=>$rs){
			$state 	 = $rs['state'];
			if($state==3){
				$rows[$k]['ishui']		=1;
			}
			$ztarr	 = $statea[$state];
后面还有 6 行代码,购买后查看完整代码

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

AI 解读 AI

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

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