diff --git a/application/third_party/wwwlog/controllers/index.php b/application/third_party/wwwlog/controllers/index.php index eb29e692..fa056cfd 100644 --- a/application/third_party/wwwlog/controllers/index.php +++ b/application/third_party/wwwlog/controllers/index.php @@ -78,7 +78,7 @@ class Index extends CI_Controller public function index() { $data = array(); - $orders = $this->wwwlogs_model->get_update_list(10); + $orders = $this->wwwlogs_model->get_update_list(12); // print_r($orders); if ($orders) { foreach ($orders as $item) { diff --git a/application/third_party/wwwlog/models/wwwlogs_model.php b/application/third_party/wwwlog/models/wwwlogs_model.php index 3eec27d8..d9fc123e 100644 --- a/application/third_party/wwwlog/models/wwwlogs_model.php +++ b/application/third_party/wwwlog/models/wwwlogs_model.php @@ -43,6 +43,7 @@ class wwwlogs_model extends CI_Model { $this->init(); $this->topnum = $topnum; + $this->orderby = ' order by COLI_SN desc '; return $this->get_list(); }