webmain/model/flow/rewardModel.php

(完整代码) 971B

<?php
class flow_rewardClassModel extends flowModel
{
	public $typearr;
	
	public function initModel(){
		$this->typearr		= array('<font color=green>奖励</font>','<font color=red>处罚</font>');
	}
	
	protected function flowcheckname($num)
	{
		if($num=='objectque'){
			return array($this->rs['objectid'], $this->rs['object']);
		}
	}
	
	public function flowsearchfields()
	{
		$arr[] = array('name'=>'申请人...','fields'=>'uid');
		$arr[] = array('name'=>'奖惩对象...','fields'=>'objectid');
		return $arr;
	}
	
	
	public function flowrsreplace($rs){
		$type 		= $rs['type'];
		$rs['type'] = $this->typearr[$type];
		return $rs;
	}
	

	protected function flowbillwhere($uid, $lx)
	{
		$key  	= $this->rock->post('key');
		$where 	= '';
		if($key!='')$where.=" and (b.udeptname like '%$key%' or b.`uname` like '%$key%' or a.`object` like '%$key%')";
		return array(
			'keywhere' => $where,
			'leftbill' => 1
		);
	}
}

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

AI 解读 AI

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

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