webmain/main/yingyong/yingyongAction.php

(开头部分) 4KB

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

<?php
class yingyongClassAction extends Action
{
	public function yingyongdataAjax()
	{
		$rows = m('im_group')->getall('`type`=2','*','`sort`');
		$arrs = array();
		/*
		foreach($rows as $k=>$rs){
			$sub 	= m('im_group')->getall('`type`=2 and pid='.$rs['id'].'','*','`sort`');
			$rs['leave'] 	= 1;
			$arrs[] 		= $rs;
			foreach($sub as $k1=>$rs1){
				$rs1['leave'] = 2;
				$arrs[] 	   = $rs1;
			}
		}*/
		echo json_encode(array('rows'=>$rows));
	}
	
	public function getdataAjax()
	{
		$rows = m('im_group')->getall('`type`=2','id,name,face,num,valid','`sort`');
		echo json_encode($rows);
	}
	
	public function loaddataAjax()
	{
		$id = (int)$this->get('id');
		$arr['data'] = m('im_group')->getone($id);
		echo json_encode($arr);
	}
	
	public function beforesave($table, $cans, $id)
	{
		$msg = '';
		$num = $cans['num'];
		if(m($table)->rows("`num`='$num' and `id`<>$id")>0)$msg='编号['.$num.']已存在';
		return array('msg'=>$msg);
	}
	
	public $rows;
	public function menudataAjax()
	{
		$this->rows	= array();
		$mid		= (int)$this->get('mid');
		$agentnum	= m('im_group')->getmou('num',$mid);
		$where 		= "and `mid`='$mid'";
		$this->getmenu(0, 1, $where);
		$modeid 	= (int)m('flow_set')->getmou('id',"`num`='$agentnum'");
		$wherearr	= m('flow_where')->getrows("setid='$modeid' and `num` is not null and `status`=1",'`name`,`num`','`pnum`,`sort`');
		$barr[]		= array('num'=>'','name'=>'-选择-');
		foreach($wherearr as $k=>$rs){
			$wherearr[$k]['name'] = ''.$rs['num'].'.'.$rs['name'].'';
			$barr[] = $wherearr[$k];
		}
		
		echo json_encode(array(
			'totalCount'=> 0,
			'rows'		=> $this->rows,
后面还有 94 行代码,购买后查看完整代码

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

AI 解读 AI

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

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