agentAction.php 671 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. class agentClassAction extends apiAction
  3. {
  4. /**
  5. * 手机app读取应用
  6. */
  7. public function dataAction()
  8. {
  9. $agentarr = m('reim')->getappagent($this->adminid);
  10. $arr['agentjson'] = json_encode($agentarr['rows']);
  11. $this->showreturn($arr);
  12. }
  13. /**
  14. * app上读取数组的
  15. */
  16. public function dataappAction()
  17. {
  18. $agentarr = m('reim')->getappagent($this->adminid);
  19. $arr['agentarr'] = $agentarr;
  20. $this->showreturn($arr);
  21. }
  22. public function getoptnumAction()
  23. {
  24. $num = $this->post('num');
  25. $mid = (int)$this->post('mid');
  26. $arr = m('flow')->opt('getoptmenu', $num, $mid);
  27. $this->showreturn($arr);
  28. }
  29. }
粤ICP备19079148号