标签:
优化前的相关代码
RoomController.class.php
1 //带详情的宿舍信息列表,已经完成检查的宿舍 2 //08 3 function team_room_list_with_detail($team_id,$is_finish=true){ 4 // echo ‘worked‘; 5 // exit; 6 $list_o = $this->team_room_list_without_detail($team_id,$is_finish); 7 // show_bug($list_o); 8 9 $list = array(); 10 foreach ($list_o as $l){ 11 $rdata = $this->room_detail($l[‘room_id‘],$team_id); 12 $list[] = $rdata; 13 } 14 15 // $this->jsonReturn($list); 16 // show_bug($list); 17 return $list; 18 }
标签:
原文地址:http://www.cnblogs.com/Darlin356230410/p/4543660.html