webmain/model/flow/hrkaohemModel.php

(完整代码) 1KB

<?php
//考核项目
class flow_hrkaohemClassModel extends flowModel
{
	public $pinlva = array();
	public function initModel()
	{
		$this->pinlva['d'] = '每天';
		$this->pinlva['w'] = '每周一';
		$this->pinlva['m'] = '每月';
		$this->pinlva['j'] = '每季度';
		$this->pinlva['y'] = '每年';
	}
	

	
	public function flowrsreplace($rs, $lx=0)
	{
		$pinlv 		 = $rs['pinlv'];
		
		$rs['pinlv'] = arrvalue($this->pinlva, $pinlv);
		$sctime		 = $rs['sctime'];
		if($pinlv=='m'){
			$rs['sctime']  = $rs['pinlv'].date('d号H:i', strtotime($sctime));
		}
		if($pinlv=='j'){
			$rs['sctime']  = $rs['pinlv'].'首月的'.date('d号H:i', strtotime($sctime));
		}
		if($pinlv=='y'){
			$rs['sctime']  = $rs['pinlv'].date('m月d号H:i', strtotime($sctime));;
		}
		if($lx==2){
			$zbdata = $this->db->getall("select * from `[Q]hrkaohes` where `mid`='".$rs['id']."' order by `sort`");
			$str 	= '';
			foreach($zbdata as $k1=>$rs1)$str.=''.$rs1['itemname'].'('.$rs1['weight'].'%);';
			$rs['temp_zbcont'] = $str;
			
			$zbdata = $this->db->getall("select * from `[Q]hrkaohen` where `mid`='".$rs['id']."' order by `sort`");
			$str 	= '';
			foreach($zbdata as $k1=>$rs1)$str.=''.$rs1['pfname'].'('.$rs1['pfweight'].'%);';
			$rs['temp_pfren'] = $str;
		}
		return $rs;
	}

}

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

AI 解读 AI

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

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