From 005c577945739fcffeb22fdbea3f29e9359e0d0b Mon Sep 17 00:00:00 2001 From: wlx Date: Fri, 28 Oct 2011 09:49:16 +0000 Subject: [PATCH] =?UTF-8?q?=E9=9A=8F=E6=9C=BA=E5=B1=95=E7=A4=BA=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=85=89=E7=9B=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/default/controllers/IndexController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/default/controllers/IndexController.php b/application/default/controllers/IndexController.php index 1bec4e03..f6304505 100755 --- a/application/default/controllers/IndexController.php +++ b/application/default/controllers/IndexController.php @@ -31,7 +31,7 @@ class IndexController extends Zend_Controller_Action $sql="select * from datafeature order by id desc"; $this->view->feature=$this->db->fetchRow($sql); //特色数据集 - $sql="select * from datasetcd order by id desc"; + $sql="select * from datasetcd order by random()"; $this->view->datasetcd=$this->db->fetchRow($sql); //下载最多数据(top 5) $sql="select uuid,title,id from metadata where id in (select m.id from metadata m left join dataorder d on m.uuid=d.uuid group by m.id order by count(d.uuid) desc limit 5)";