BuildingApiController.php 370 B

123456789101112131415161718192021222324252627
  1. <?php
  2. /**
  3. * 建筑接口控制器
  4. *
  5. * @author EllisRan
  6. */
  7. class BuildingApiController extends DooController {
  8. public $staff;
  9. function __construct() {
  10. }
  11. public function categoryStaff() {
  12. Doo::loadModel('staff');
  13. $staff = new staff();
  14. $stafflist = $staff->getStaffByCidOnBuilding($this->params['cid']);
  15. echo json_encode($stafflist);
  16. exit;
  17. }
  18. }
  19. ?>