信呼OA版本v2.3.8
This commit is contained in:
32
webmain/task/api/agentAction.php
Normal file
32
webmain/task/api/agentAction.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
class agentClassAction extends apiAction
|
||||
{
|
||||
/**
|
||||
* 手机app读取应用
|
||||
*/
|
||||
public function dataAction()
|
||||
{
|
||||
$agentarr = m('reim')->getappagent($this->adminid);
|
||||
$arr['agentjson'] = json_encode($agentarr['rows']);
|
||||
$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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user