_getAccountId(); } $singleList = BattleSettlement::getSingleList($accountId,$room_mode); $historyList = BattleHistory::orderBy($singleList,'desc'); $data = array(); foreach ($historyList as $k=>$history){ if ($k < 40){ array_push($data,$history); } } $this->_rspData(array( 'data' => $data )); } }