$api_user, 'apiKey' => $api_key, 'apiUserList' => $api_user, 'startDate' => $start_date, 'endDate' => $end_date ); $result = make_curl($post_url,$params); $list = $result['info']['voList']; $list = $this->listByDate($list); $this->assign('list',$list); $this->assign('date_show',$date_show); $this->assign('info',$info); $this->display("index.html"); } //按时间排序 function listByDate($list,$desc){ if(empty($desc)){//降序 for($i=0; $i $list[$j]['requestTime']){ $temp = $list[$i]; $list[$i] = $list[$j]; $list[$j] = $temp; } } } }else{ for($i=0; $i