<?php 
class agentClassAction extends apiAction
{
	/**
	*	手机app读取应用
	*/
	public function dataAction()
	{
		$agentarr			= m('reim')->getagent($this->adminid);
		$arr['agentjson']	= json_encode($agentarr);
		$this->showreturn($arr);
	}
	
	/**
	*	app上读取数组的
	*/
	public function dataappAction()
	{
		$agentarr			= m('reim')->getappagent($this->adminid);
		$arr['agentarr']	= $agentarr;
		$this->showreturn($arr);
	}
	
	public function getoptnumAction()
	{
		$num  	= $this->post('num');
		$mid  	= (int)$this->post('mid');
		
		$arr 	= m('flow')->opt('getoptmenu', $num, $mid);
		$this->showreturn($arr);
	}
}